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

Unified Diff: third_party/WebKit/LayoutTests/fast/dom/plugin-attributes-enumeration.html

Issue 1371793003: Improve plugin-attributes-enumeration test and rebaseline it (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 3 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/LayoutTests/fast/dom/plugin-attributes-enumeration.html
diff --git a/third_party/WebKit/LayoutTests/fast/dom/plugin-attributes-enumeration.html b/third_party/WebKit/LayoutTests/fast/dom/plugin-attributes-enumeration.html
index fa1575d5230b39b62f8bddf17fa070bba784d5dc..6757ece09b9f5909b55ca8c995ecfe08d4bcb3bd 100644
--- a/third_party/WebKit/LayoutTests/fast/dom/plugin-attributes-enumeration.html
+++ b/third_party/WebKit/LayoutTests/fast/dom/plugin-attributes-enumeration.html
@@ -31,6 +31,7 @@ function test()
var objectHash = new Object();
var embedHash = new Object();
var intersectionHash = new Object();
+ var divElement = document.createElement('div');
var object, embed;
@@ -52,7 +53,7 @@ function test()
print("[OBJECT, EMBED] share:", "green");
var array = new Array();
for (var p in intersectionHash)
- if (typeof document.body[p] == 'undefined') // weed out items shared by all elements
+ if (typeof divElement[p] == 'undefined') // weed out items shared by all elements
array.push(p);
array.sort();
array.forEach(print);
@@ -83,8 +84,8 @@ function test()
<hr>
<div id='console'></div>
-<object class="invisible" id="object"></object>
-<embed class="invisible" id="embed"></embed>
+<div><object class="invisible" id="object"></object></div>
+<div><embed class="invisible" id="embed"></embed></div>
</body>
</html>

Powered by Google App Engine
This is Rietveld 408576698