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

Side by Side Diff: third_party/WebKit/LayoutTests/html/resources/event-handlers.js

Issue 2669403002: Move tests for sections elements to html/sections/. (Closed)
Patch Set: Created 3 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 function getObject(interface) { 1 function getObject(interface) {
2 switch(interface) { 2 switch(interface) {
3 case "Element": 3 case "Element":
4 var e = document.createElementNS("http://example.com/", "example"); 4 var e = document.createElementNS("http://example.com/", "example");
5 assert_true(e instanceof Element); 5 assert_true(e instanceof Element);
6 assert_false(e instanceof HTMLElement); 6 assert_false(e instanceof HTMLElement);
7 assert_false(e instanceof SVGElement); 7 assert_false(e instanceof SVGElement);
8 return e; 8 return e;
9 case "HTMLElement": 9 case "HTMLElement":
10 var e = document.createElement("html"); 10 var e = document.createElement("html");
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
82 } 82 }
83 var enumerableCache = {}; 83 var enumerableCache = {};
84 function testEnumerate(interface, attribute) { 84 function testEnumerate(interface, attribute) {
85 if (!(interface in enumerableCache)) { 85 if (!(interface in enumerableCache)) {
86 enumerableCache[interface] = getEnumerable(interface); 86 enumerableCache[interface] = getEnumerable(interface);
87 } 87 }
88 test(function() { 88 test(function() {
89 assert_true(enumerableCache[interface][attribute]); 89 assert_true(enumerableCache[interface][attribute]);
90 }, "Enumerate " + interface + "." + attribute); 90 }, "Enumerate " + interface + "." + attribute);
91 } 91 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698