Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(198)

Side by Side Diff: third_party/WebKit/LayoutTests/imported/wpt/WebIDL/ecmascript-binding/es-exceptions/exceptions.html

Issue 2018873002: Fix testharness paths in imported/wpt/* except dom and html. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698