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

Side by Side Diff: third_party/WebKit/LayoutTests/imported/wpt/dom/historical.html

Issue 2086283003: Update web-platform-tests (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Merge branch 'master' into wpt_import Created 4 years, 5 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>Historical DOM features must be removed</title> 2 <title>Historical DOM features must be removed</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 isInterfaceNuked(name) { 7 function isInterfaceNuked(name) {
8 test(function() { 8 test(function() {
9 assert_equals(window[name], undefined) 9 assert_equals(window[name], undefined)
10 }, "Historical DOM features must be removed: " + name) 10 }, "Historical DOM features must be removed: " + name)
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
110 } 110 }
111 var nodeNuked = [ 111 var nodeNuked = [
112 "hasAttributes", 112 "hasAttributes",
113 "attributes", 113 "attributes",
114 "namespaceURI", 114 "namespaceURI",
115 "prefix", 115 "prefix",
116 "localName", 116 "localName",
117 "isSupported", 117 "isSupported",
118 "getFeature", 118 "getFeature",
119 "getUserData", 119 "getUserData",
120 "setUserData" 120 "setUserData",
121 "rootNode",
121 ] 122 ]
122 nodeNuked.forEach(isNukedFromNode) 123 nodeNuked.forEach(isNukedFromNode)
123 124
124 function isNukedFromWindow(name) { 125 function isNukedFromWindow(name) {
125 test(function() { 126 test(function() {
126 assert_equals(window[name], undefined) 127 assert_equals(window[name], undefined)
127 }, "Window member must be nuked: " + name) 128 }, "Window member must be nuked: " + name)
128 } 129 }
129 var windowNuked = [ 130 var windowNuked = [
130 "attachEvent" 131 "attachEvent"
131 ] 132 ]
132 windowNuked.forEach(isNukedFromWindow) 133 windowNuked.forEach(isNukedFromWindow)
133 </script> 134 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698