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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/dom/custom/custom-elements-registry.html

Issue 1810973004: Add the CustomElementsRegistry interface behind the flag (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase (merge conflict) Created 4 years, 8 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
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/webexposed/global-interface-listing-expected.txt » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <script src="../../../resources/testharness.js"></script>
3 <script src="../../../resources/testharnessreport.js"></script>
4 <script>
5 test(function () {
6 assert_true('customElements' in window, '"customElements" exists in window');
7 assert_true('define' in window.customElements, '"define" exists in window.cust omElements');
8 }, 'window.customElements.define is defined');
9
10 test(function () {
11 assert_throws(null, function () { window.customElements.define(); },
12 '"define" without arguments should throw TypeError');
13 assert_throws(null, function () { window.customElements.define("x-x"); },
14 '"define" with one argument should throw TypeError');
15
16 window.customElements.define('x-empty-function', function () { });
17 window.customElements.define('x-empty-class', class { });
18
19 }, 'window.customElements.define requires two arguments');
20 </script>
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/webexposed/global-interface-listing-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698