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

Side by Side Diff: third_party/WebKit/LayoutTests/imported/wpt/custom-elements/custom-elements-registry/define.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>Custom Elements: Element definition</title> 2 <title>Custom Elements: Element definition</title>
3 <script src="../../../../resources/testharness.js"></script> 3 <script src="/resources/testharness.js"></script>
4 <script src="../../../../resources/testharnessreport.js"></script> 4 <script src="/resources/testharnessreport.js"></script>
5 <body> 5 <body>
6 <div id="log"></div> 6 <div id="log"></div>
7 <iframe id="iframe"></iframe> 7 <iframe id="iframe"></iframe>
8 <script> 8 <script>
9 'use strict'; 9 'use strict';
10 (() => { 10 (() => {
11 // Element definition 11 // Element definition
12 // https://html.spec.whatwg.org/multipage/scripting.html#element-definition 12 // https://html.spec.whatwg.org/multipage/scripting.html#element-definition
13 13
14 // Use window from iframe to isolate the test. 14 // Use window from iframe to isolate the test.
(...skipping 226 matching lines...) Expand 10 before | Expand all | Expand 10 after
241 c.prototype[name] = value[1]; 241 c.prototype[name] = value[1];
242 assert_throws(expectTypeError, () => { 242 assert_throws(expectTypeError, () => {
243 customElements.define('test-define-constructor-prototype-' + name, c); 243 customElements.define('test-define-constructor-prototype-' + name, c);
244 }); 244 });
245 }, `If constructor.prototype.${name} is ${value[0]}, should throw a TypeEr ror`); 245 }, `If constructor.prototype.${name} is ${value[0]}, should throw a TypeEr ror`);
246 }) 246 })
247 }); 247 });
248 })(); 248 })();
249 </script> 249 </script>
250 </body> 250 </body>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698