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

Side by Side Diff: third_party/WebKit/LayoutTests/imported/wpt/dom/interface-objects.html

Issue 1988983002: Move the dom directory from web-platform-tests/ to wpt/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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 24 matching lines...) Expand all
35 ]; 35 ];
36 test(function() { 36 test(function() {
37 for (var p in window) { 37 for (var p in window) {
38 interfaces.forEach(function(i) { 38 interfaces.forEach(function(i) {
39 assert_not_equals(p, i) 39 assert_not_equals(p, i)
40 }) 40 })
41 } 41 }
42 }, "Interface objects properties should not be Enumerable") 42 }, "Interface objects properties should not be Enumerable")
43 interfaces.forEach(testInterfaceDeletable); 43 interfaces.forEach(testInterfaceDeletable);
44 </script> 44 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698