| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <html> | 2 <html> |
| 3 <head> | 3 <head> |
| 4 <script src="../../../resources/js-test.js"></script> | 4 <script src="../../../resources/js-test.js"></script> |
| 5 <script src="resources/shadow-dom.js"></script> | 5 <script src="resources/shadow-dom.js"></script> |
| 6 </head> | 6 </head> |
| 7 <body> | 7 <body> |
| 8 <p id="description"></p> | 8 <p id="description"></p> |
| 9 <div id="sandbox"></div> | 9 <div id="sandbox"></div> |
| 10 <pre id="console"></pre> | 10 <pre id="console"></pre> |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 58 | 58 |
| 59 shouldBe("eventRecords['parent']['offsetY']", "5"); | 59 shouldBe("eventRecords['parent']['offsetY']", "5"); |
| 60 shouldBe("eventRecords['shadow-host']['offsetY']", "5 + 20"); | 60 shouldBe("eventRecords['shadow-host']['offsetY']", "5 + 20"); |
| 61 shouldBe("eventRecords['top']['offsetY']", "5 + 20"); | 61 shouldBe("eventRecords['top']['offsetY']", "5 + 20"); |
| 62 | 62 |
| 63 shouldBe("eventRecords['parent']['offsetX']", "80 / 2"); | 63 shouldBe("eventRecords['parent']['offsetX']", "80 / 2"); |
| 64 shouldBe("eventRecords['shadow-host']['offsetX']", "80 / 2 + 100"); | 64 shouldBe("eventRecords['shadow-host']['offsetX']", "80 / 2 + 100"); |
| 65 shouldBe("eventRecords['top']['offsetX']", "80 / 2 + 100"); | 65 shouldBe("eventRecords['top']['offsetX']", "80 / 2 + 100"); |
| 66 } | 66 } |
| 67 | 67 |
| 68 function test() | 68 testMouseEventOffset(); |
| 69 { | |
| 70 if (window.testRunner) | |
| 71 testRunner.dumpAsText(); | |
| 72 | |
| 73 testMouseEventOffset(); | |
| 74 } | |
| 75 | |
| 76 test(); | |
| 77 </script> | 69 </script> |
| 78 </body> | 70 </body> |
| 79 </html> | 71 </html> |
| OLD | NEW |