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

Unified Diff: webkit/data/layout_tests/chrome/svg/custom/new-image-is-html-element.svg

Issue 10268: Fix Chromium bug 4178... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 12 years, 1 month 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
« no previous file with comments | « no previous file | webkit/data/layout_tests/chrome/svg/custom/new-image-is-html-element-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/data/layout_tests/chrome/svg/custom/new-image-is-html-element.svg
===================================================================
--- webkit/data/layout_tests/chrome/svg/custom/new-image-is-html-element.svg (revision 0)
+++ webkit/data/layout_tests/chrome/svg/custom/new-image-is-html-element.svg (revision 0)
@@ -0,0 +1,14 @@
+<svg xmlns="http://www.w3.org/2000/svg">
+ <text id="result" y="100"/>
+ <script>
+ if (window.layoutTestController)
+ layoutTestController.dumpAsText();
+
+ // Firefox, Opera, and Safari all treat "new Image()" as creating an
+ // HTML image element regardless of the current doctype. Ensure that
+ // Chrome's behavior is the same
+
+ var pass = "[object HTMLImageElement]" == new Image();
+ document.getElementById("result").appendChild(document.createTextNode(pass ? "PASS" : "FAIL"));
+ </script>
+</svg>
« no previous file with comments | « no previous file | webkit/data/layout_tests/chrome/svg/custom/new-image-is-html-element-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698