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

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

Issue 2610243002: Import wpt@5e1a3b80cea8d36774d2afd78b29a74792e9f15a (Closed)
Patch Set: Rebased Created 3 years, 11 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 30 matching lines...) Expand all
41 "createEntityReference", 41 "createEntityReference",
42 "xmlEncoding", 42 "xmlEncoding",
43 "xmlStandalone", 43 "xmlStandalone",
44 "xmlVersion", 44 "xmlVersion",
45 "strictErrorChecking", 45 "strictErrorChecking",
46 "domConfig", 46 "domConfig",
47 "normalizeDocument", 47 "normalizeDocument",
48 "renameNode", 48 "renameNode",
49 "defaultCharset", 49 "defaultCharset",
50 "height", 50 "height",
51 "width" 51 "width",
52 // https://github.com/whatwg/html/commit/a64aea7fdb221bba027d95dc3cabda09e0b3e 5dc
53 "commands",
54 // https://github.com/whatwg/html/commit/797b4d273955a0fe3cc2e2d0ca5d578f37c0f 126
55 "cssElementMap",
56 // https://github.com/whatwg/html/commit/e236f46820b93d6fe2e2caae0363331075c6c 4fb
57 "async",
52 ] 58 ]
53 documentNuked.forEach(isNukedFromDocument) 59 documentNuked.forEach(isNukedFromDocument)
54 60
55 test(function() { 61 test(function() {
62 // https://github.com/whatwg/html/commit/e236f46820b93d6fe2e2caae0363331075c6c 4fb
63 assert_false("load" in document);
64 }, "document.load");
65
66 test(function() {
56 assert_equals(document.implementation["getFeature"], undefined) 67 assert_equals(document.implementation["getFeature"], undefined)
57 }, "DOMImplementation.getFeature() must be nuked.") 68 }, "DOMImplementation.getFeature() must be nuked.")
58 69
59 function isNukedFromElement(name) { 70 function isNukedFromElement(name) {
60 test(function() { 71 test(function() {
61 var ele = document.createElementNS("test", "test") 72 var ele = document.createElementNS("test", "test")
62 assert_equals(document.body[name], undefined) 73 assert_equals(document.body[name], undefined)
63 assert_equals(ele[name], undefined) 74 assert_equals(ele[name], undefined)
64 }, "Historical DOM features must be removed: " + name) 75 }, "Historical DOM features must be removed: " + name)
65 } 76 }
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
160 "KEYUP", 171 "KEYUP",
161 "KEYPRESS", 172 "KEYPRESS",
162 "DRAGDROP", 173 "DRAGDROP",
163 "FOCUS", 174 "FOCUS",
164 "BLUR", 175 "BLUR",
165 "SELECT", 176 "SELECT",
166 "CHANGE" 177 "CHANGE"
167 ] 178 ]
168 EventRemoved.forEach(isRemovedFromEvent) 179 EventRemoved.forEach(isRemovedFromEvent)
169 </script> 180 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698