| 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 constructors for all the event DOM classes that have
them."); | 9 description("This tests the constructors for all the event DOM classes that have
them."); |
| 10 | 10 |
| (...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 76 | 76 |
| 77 // One getter returning true. | 77 // One getter returning true. |
| 78 test("new Event('eventType', { bubbles: true, get cancelable() { return true; }
})", true, true); | 78 test("new Event('eventType', { bubbles: true, get cancelable() { return true; }
})", true, true); |
| 79 | 79 |
| 80 // One getter returning false. | 80 // One getter returning false. |
| 81 test("new Event('eventType', { bubbles: true, get cancelable() { return false; }
})", true, false); | 81 test("new Event('eventType', { bubbles: true, get cancelable() { return false; }
})", true, false); |
| 82 | 82 |
| 83 // One getter throws an exeception. | 83 // One getter throws an exeception. |
| 84 shouldThrow("new Event('eventType', { bubbles: true, get cancelable() { throw 'C
ustom Error'; } })") | 84 shouldThrow("new Event('eventType', { bubbles: true, get cancelable() { throw 'C
ustom Error'; } })") |
| 85 </script> | 85 </script> |
| 86 <script src="../../js/resources/js-test-post.js"></script> | |
| 87 </body> | 86 </body> |
| 88 </html> | 87 </html> |
| OLD | NEW |