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

Side by Side Diff: third_party/WebKit/LayoutTests/imported/web-platform-tests/dom/interface-objects.html

Issue 1666363003: Import web-platform-tests@27e3d93f88a71a249d1df872a5d613b3243b9588 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Missed win failiure in TestExpectations Created 4 years, 10 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>Interfaces</title> 2 <title>Interfaces</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 <div id="log"></div> 5 <div id="log"></div>
6 <script> 6 <script>
7 function testInterfaceDeletable(iface) { 7 function testInterfaceDeletable(iface) {
8 test(function() { 8 test(function() {
9 assert_true(!!window[iface], "Interface should exist.") 9 assert_true(!!window[iface], "Interface should exist.")
10 assert_true(delete window[iface], "The delete operator should return true.") 10 assert_true(delete window[iface], "The delete operator should return true.")
(...skipping 13 matching lines...) Expand all
24 "Element", 24 "Element",
25 "Attr", 25 "Attr",
26 "CharacterData", 26 "CharacterData",
27 "Text", 27 "Text",
28 "Comment", 28 "Comment",
29 "NodeIterator", 29 "NodeIterator",
30 "TreeWalker", 30 "TreeWalker",
31 "NodeFilter", 31 "NodeFilter",
32 "NodeList", 32 "NodeList",
33 "HTMLCollection", 33 "HTMLCollection",
34 "DOMStringList", 34 "DOMTokenList"
35 "DOMTokenList",
36 "DOMSettableTokenList"
37 ]; 35 ];
38 test(function() { 36 test(function() {
39 for (var p in window) { 37 for (var p in window) {
40 interfaces.forEach(function(i) { 38 interfaces.forEach(function(i) {
41 assert_not_equals(p, i) 39 assert_not_equals(p, i)
42 }) 40 })
43 } 41 }
44 }, "Interface objects properties should not be Enumerable") 42 }, "Interface objects properties should not be Enumerable")
45 interfaces.forEach(testInterfaceDeletable); 43 interfaces.forEach(testInterfaceDeletable);
46 </script> 44 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698