| OLD | NEW |
| 1 <!doctype html> | 1 <!doctype html> |
| 2 <title>DOMException-throwing tests</title> | 2 <title>DOMException-throwing tests</title> |
| 3 <link rel=author title="Aryeh Gregor" href=ayg@aryeh.name> | 3 <link rel=author title="Aryeh Gregor" href=ayg@aryeh.name> |
| 4 <div id=log></div> | 4 <div id=log></div> |
| 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> | 7 <script> |
| 8 /** | 8 /** |
| 9 * This file just picks one case where browsers are supposed to throw an | 9 * This file just picks one case where browsers are supposed to throw an |
| 10 * exception, and tests the heck out of whether it meets the spec. In the | 10 * exception, and tests the heck out of whether it meets the spec. In the |
| 11 * future, all these checks should be in assert_throws(), but we don't want | 11 * future, all these checks should be in assert_throws(), but we don't want |
| 12 * every browser failing every assert_throws() check until they fix every | 12 * every browser failing every assert_throws() check until they fix every |
| 13 * single bug in their exception-throwing. | 13 * single bug in their exception-throwing. |
| 14 * | 14 * |
| 15 * We don't go out of our way to test everything that's already tested by | 15 * We don't go out of our way to test everything that's already tested by |
| 16 * interfaces.html, like whether all constants are present on the object, but | 16 * interfaces.html, like whether all constants are present on the object, but |
| (...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 127 } catch(e) { | 127 } catch(e) { |
| 128 exception = e; | 128 exception = e; |
| 129 } | 129 } |
| 130 testException(exception, iframe.contentWindow, "In iframe: "); | 130 testException(exception, iframe.contentWindow, "In iframe: "); |
| 131 | 131 |
| 132 document.body.removeChild(iframe); | 132 document.body.removeChild(iframe); |
| 133 done(); | 133 done(); |
| 134 }; | 134 }; |
| 135 document.body.appendChild(iframe); | 135 document.body.appendChild(iframe); |
| 136 </script> | 136 </script> |
| OLD | NEW |