| OLD | NEW |
| 1 <!DOCTYPE HTML> | 1 <!DOCTYPE HTML> |
| 2 <html> | 2 <html> |
| 3 <head> | 3 <head> |
| 4 <title>document.createTouch and document.createTouchList Tests</title> | 4 <title>document.createTouch and document.createTouchList Tests</title> |
| 5 <script src="../../../resources/testharness.js"></script> | 5 <script src="/resources/testharness.js"></script> |
| 6 <script src="../../../resources/testharnessreport.js"></script> | 6 <script src="/resources/testharnessreport.js"></script> |
| 7 <script src="touch-support.js"></script> | 7 <script src="touch-support.js"></script> |
| 8 <body> | 8 <body> |
| 9 <div id="target0"></div> | 9 <div id="target0"></div> |
| 10 <script> | 10 <script> |
| 11 test(function() { | 11 test(function() { |
| 12 var testTarget = document.getElementById('target0'); | 12 var testTarget = document.getElementById('target0'); |
| 13 var touch1 = document.createTouch(window, testTarget, 42, 15, 20, 35, 40); | 13 var touch1 = document.createTouch(window, testTarget, 42, 15, 20, 35, 40); |
| 14 assert_equals(touch1.target, testTarget, "touch.target is target0"); | 14 assert_equals(touch1.target, testTarget, "touch.target is target0"); |
| 15 assert_equals(touch1.identifier, 42, "touch.identifier is requested value"); | 15 assert_equals(touch1.identifier, 42, "touch.identifier is requested value"); |
| 16 assert_equals(touch1.pageX, 15, "touch.pageX is requested value"); | 16 assert_equals(touch1.pageX, 15, "touch.pageX is requested value"); |
| (...skipping 24 matching lines...) Expand all Loading... |
| 41 var touchList = document.createTouchList(touch1, touch2); | 41 var touchList = document.createTouchList(touch1, touch2); |
| 42 assert_equals(touchList.length, 2, "touchList.length is 2"); | 42 assert_equals(touchList.length, 2, "touchList.length is 2"); |
| 43 assert_equals(touchList.item(0), touch1, "touchList.item(0) is touch1"); | 43 assert_equals(touchList.item(0), touch1, "touchList.item(0) is touch1"); |
| 44 assert_equals(touchList.item(1), touch2, "touchList.item(1) is touch2"); | 44 assert_equals(touchList.item(1), touch2, "touchList.item(1) is touch2"); |
| 45 check_TouchList_object(touchList); | 45 check_TouchList_object(touchList); |
| 46 }, "document.createTouchList exists and correctly creates a TouchList from two T
ouch objects"); | 46 }, "document.createTouchList exists and correctly creates a TouchList from two T
ouch objects"); |
| 47 </script> | 47 </script> |
| 48 </head> | 48 </head> |
| 49 </body> | 49 </body> |
| 50 </html> | 50 </html> |
| OLD | NEW |