tests/touch-events-v1/submissions/Nokia/multi-touch-interactions.html
author Cathy Chan <cathy.chan@nokia.com>
Mon, 26 Nov 2012 15:53:05 -0500
changeset 163 e5a493429528
permissions -rw-r--r--
Multi-touch tests submitted by Nokia
163
e5a493429528 Multi-touch tests submitted by Nokia
Cathy Chan <cathy.chan@nokia.com>
parents:
diff changeset
     1
<!DOCTYPE HTML>
e5a493429528 Multi-touch tests submitted by Nokia
Cathy Chan <cathy.chan@nokia.com>
parents:
diff changeset
     2
<html>
e5a493429528 Multi-touch tests submitted by Nokia
Cathy Chan <cathy.chan@nokia.com>
parents:
diff changeset
     3
<!-- 
e5a493429528 Multi-touch tests submitted by Nokia
Cathy Chan <cathy.chan@nokia.com>
parents:
diff changeset
     4
	Test cases for Touch Events v1 Candiate Recommendation
e5a493429528 Multi-touch tests submitted by Nokia
Cathy Chan <cathy.chan@nokia.com>
parents:
diff changeset
     5
	http://www.w3.org/TR/2011/CR-touch-events-20111215/
e5a493429528 Multi-touch tests submitted by Nokia
Cathy Chan <cathy.chan@nokia.com>
parents:
diff changeset
     6
e5a493429528 Multi-touch tests submitted by Nokia
Cathy Chan <cathy.chan@nokia.com>
parents:
diff changeset
     7
	These tests are based on Mozilla-Nokia-Google's single-touch tests and to some extent Olli Pettay's multi-touch tests. 
e5a493429528 Multi-touch tests submitted by Nokia
Cathy Chan <cathy.chan@nokia.com>
parents:
diff changeset
     8
	http://w3c-test.org/webevents/tests/touch-events-v1/submissions/Moz-Nok-Goog/single-touch.html
e5a493429528 Multi-touch tests submitted by Nokia
Cathy Chan <cathy.chan@nokia.com>
parents:
diff changeset
     9
	http://w3c-test.org/webevents/tests/touch-events-v1/submissions/Mozilla/multi-touch.html
e5a493429528 Multi-touch tests submitted by Nokia
Cathy Chan <cathy.chan@nokia.com>
parents:
diff changeset
    10
e5a493429528 Multi-touch tests submitted by Nokia
Cathy Chan <cathy.chan@nokia.com>
parents:
diff changeset
    11
	The primary purpose of the tests in this document is checking that the interactions of various Touch events are correctly implemented under any touch patterns
e5a493429528 Multi-touch tests submitted by Nokia
Cathy Chan <cathy.chan@nokia.com>
parents:
diff changeset
    12
e5a493429528 Multi-touch tests submitted by Nokia
Cathy Chan <cathy.chan@nokia.com>
parents:
diff changeset
    13
	This document references Test Assertions (abbrev TA below) written by Cathy Chan
e5a493429528 Multi-touch tests submitted by Nokia
Cathy Chan <cathy.chan@nokia.com>
parents:
diff changeset
    14
	http://www.w3.org/2010/webevents/wiki/TestAssertions
e5a493429528 Multi-touch tests submitted by Nokia
Cathy Chan <cathy.chan@nokia.com>
parents:
diff changeset
    15
-->
e5a493429528 Multi-touch tests submitted by Nokia
Cathy Chan <cathy.chan@nokia.com>
parents:
diff changeset
    16
e5a493429528 Multi-touch tests submitted by Nokia
Cathy Chan <cathy.chan@nokia.com>
parents:
diff changeset
    17
<head>
e5a493429528 Multi-touch tests submitted by Nokia
Cathy Chan <cathy.chan@nokia.com>
parents:
diff changeset
    18
<title>Touch Events Multi-Touch Interaction Test</title>
e5a493429528 Multi-touch tests submitted by Nokia
Cathy Chan <cathy.chan@nokia.com>
parents:
diff changeset
    19
<meta name="viewport" content="width=device-width">
e5a493429528 Multi-touch tests submitted by Nokia
Cathy Chan <cathy.chan@nokia.com>
parents:
diff changeset
    20
<script src="../../../testharness.js"></script>
e5a493429528 Multi-touch tests submitted by Nokia
Cathy Chan <cathy.chan@nokia.com>
parents:
diff changeset
    21
<script src="multi-touch-interactions.js"></script>
e5a493429528 Multi-touch tests submitted by Nokia
Cathy Chan <cathy.chan@nokia.com>
parents:
diff changeset
    22
<style>
e5a493429528 Multi-touch tests submitted by Nokia
Cathy Chan <cathy.chan@nokia.com>
parents:
diff changeset
    23
	div {
e5a493429528 Multi-touch tests submitted by Nokia
Cathy Chan <cathy.chan@nokia.com>
parents:
diff changeset
    24
		margin: 0em;
e5a493429528 Multi-touch tests submitted by Nokia
Cathy Chan <cathy.chan@nokia.com>
parents:
diff changeset
    25
		padding: 1.5em;
e5a493429528 Multi-touch tests submitted by Nokia
Cathy Chan <cathy.chan@nokia.com>
parents:
diff changeset
    26
	}
e5a493429528 Multi-touch tests submitted by Nokia
Cathy Chan <cathy.chan@nokia.com>
parents:
diff changeset
    27
	#target0 {
e5a493429528 Multi-touch tests submitted by Nokia
Cathy Chan <cathy.chan@nokia.com>
parents:
diff changeset
    28
		background: yellow;
e5a493429528 Multi-touch tests submitted by Nokia
Cathy Chan <cathy.chan@nokia.com>
parents:
diff changeset
    29
		border: 1px solid orange;
e5a493429528 Multi-touch tests submitted by Nokia
Cathy Chan <cathy.chan@nokia.com>
parents:
diff changeset
    30
	}
e5a493429528 Multi-touch tests submitted by Nokia
Cathy Chan <cathy.chan@nokia.com>
parents:
diff changeset
    31
	#target1 {
e5a493429528 Multi-touch tests submitted by Nokia
Cathy Chan <cathy.chan@nokia.com>
parents:
diff changeset
    32
		background: lightblue;
e5a493429528 Multi-touch tests submitted by Nokia
Cathy Chan <cathy.chan@nokia.com>
parents:
diff changeset
    33
		border: 1px solid blue;
e5a493429528 Multi-touch tests submitted by Nokia
Cathy Chan <cathy.chan@nokia.com>
parents:
diff changeset
    34
	}
e5a493429528 Multi-touch tests submitted by Nokia
Cathy Chan <cathy.chan@nokia.com>
parents:
diff changeset
    35
</style>
e5a493429528 Multi-touch tests submitted by Nokia
Cathy Chan <cathy.chan@nokia.com>
parents:
diff changeset
    36
</head>
e5a493429528 Multi-touch tests submitted by Nokia
Cathy Chan <cathy.chan@nokia.com>
parents:
diff changeset
    37
<body onload="run()">
e5a493429528 Multi-touch tests submitted by Nokia
Cathy Chan <cathy.chan@nokia.com>
parents:
diff changeset
    38
	<h1>Touch Events: Multi-Touch Interaction Test</h1>
e5a493429528 Multi-touch tests submitted by Nokia
Cathy Chan <cathy.chan@nokia.com>
parents:
diff changeset
    39
	<div id="target0">
e5a493429528 Multi-touch tests submitted by Nokia
Cathy Chan <cathy.chan@nokia.com>
parents:
diff changeset
    40
		Touch this box with one finger, then another one...
e5a493429528 Multi-touch tests submitted by Nokia
Cathy Chan <cathy.chan@nokia.com>
parents:
diff changeset
    41
	</div>
e5a493429528 Multi-touch tests submitted by Nokia
Cathy Chan <cathy.chan@nokia.com>
parents:
diff changeset
    42
	<div id="target1">
e5a493429528 Multi-touch tests submitted by Nokia
Cathy Chan <cathy.chan@nokia.com>
parents:
diff changeset
    43
		...then drag to this box, then touch with a third finger, and lift all your fingers.
e5a493429528 Multi-touch tests submitted by Nokia
Cathy Chan <cathy.chan@nokia.com>
parents:
diff changeset
    44
	</div>
e5a493429528 Multi-touch tests submitted by Nokia
Cathy Chan <cathy.chan@nokia.com>
parents:
diff changeset
    45
	<div id="debug"></div>
e5a493429528 Multi-touch tests submitted by Nokia
Cathy Chan <cathy.chan@nokia.com>
parents:
diff changeset
    46
	<div id="log"></div>
e5a493429528 Multi-touch tests submitted by Nokia
Cathy Chan <cathy.chan@nokia.com>
parents:
diff changeset
    47
</body>
e5a493429528 Multi-touch tests submitted by Nokia
Cathy Chan <cathy.chan@nokia.com>
parents:
diff changeset
    48
</html>