OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <html> | 2 <html> |
3 <head> | 3 <head> |
4 <script src="../../js/resources/js-test-pre.js"></script> | 4 <script src="../../js/resources/js-test-pre.js"></script> |
5 </head> | 5 </head> |
6 <body> | 6 <body> |
7 <script> | 7 <script> |
8 | 8 |
9 description("This tests the constructor for the FocusEvent DOM class."); | 9 description("This tests the constructor for the FocusEvent DOM class."); |
10 | 10 |
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
72 shouldBe("new FocusEvent('eventType', { get relatedTarget() { return 123; } }).r
elatedTarget", "null"); | 72 shouldBe("new FocusEvent('eventType', { get relatedTarget() { return 123; } }).r
elatedTarget", "null"); |
73 shouldThrow("new FocusEvent('eventType', { get relatedTarget() { throw 'FocusEve
nt Error'; } })"); | 73 shouldThrow("new FocusEvent('eventType', { get relatedTarget() { throw 'FocusEve
nt Error'; } })"); |
74 | 74 |
75 // All initializers are passed. | 75 // All initializers are passed. |
76 shouldBe("new FocusEvent('eventType', { bubbles: true, cancelable: true, view: w
indow, detail: 111, relatedTarget: testDiv }).bubbles", "true"); | 76 shouldBe("new FocusEvent('eventType', { bubbles: true, cancelable: true, view: w
indow, detail: 111, relatedTarget: testDiv }).bubbles", "true"); |
77 shouldBe("new FocusEvent('eventType', { bubbles: true, cancelable: true, view: w
indow, detail: 111, relatedTarget: testDiv }).cancelable", "true"); | 77 shouldBe("new FocusEvent('eventType', { bubbles: true, cancelable: true, view: w
indow, detail: 111, relatedTarget: testDiv }).cancelable", "true"); |
78 shouldBe("new FocusEvent('eventType', { bubbles: true, cancelable: true, view: w
indow, detail: 111, relatedTarget: testDiv }).view", "window"); | 78 shouldBe("new FocusEvent('eventType', { bubbles: true, cancelable: true, view: w
indow, detail: 111, relatedTarget: testDiv }).view", "window"); |
79 shouldBe("new FocusEvent('eventType', { bubbles: true, cancelable: true, view: w
indow, detail: 111, relatedTarget: testDiv }).detail", "111"); | 79 shouldBe("new FocusEvent('eventType', { bubbles: true, cancelable: true, view: w
indow, detail: 111, relatedTarget: testDiv }).detail", "111"); |
80 shouldBe("new FocusEvent('eventType', { bubbles: true, cancelable: true, view: w
indow, detail: 111, relatedTarget: testDiv }).relatedTarget", "testDiv"); | 80 shouldBe("new FocusEvent('eventType', { bubbles: true, cancelable: true, view: w
indow, detail: 111, relatedTarget: testDiv }).relatedTarget", "testDiv"); |
81 </script> | 81 </script> |
82 <script src="../../js/resources/js-test-post.js"></script> | |
83 </body> | 82 </body> |
84 </html> | 83 </html> |
OLD | NEW |