Title: [175834] trunk/LayoutTests
Revision
175834
Author
msab...@apple.com
Date
2014-11-10 15:23:49 -0800 (Mon, 10 Nov 2014)

Log Message

Add test for fix of REGRESSION (r174985-174986): Site display disappears
https://bugs.webkit.org/show_bug.cgi?id=138470

Reviewed by Geoffrey Garen.

This checks that document.write() and document.writeln() are cached and the same instance
is always returned.

* js/dom/document-write-functions-cached-expected.txt: Added.
* js/dom/document-write-functions-cached.html: Added.

Modified Paths

Added Paths

Diff

Modified: trunk/LayoutTests/ChangeLog (175833 => 175834)


--- trunk/LayoutTests/ChangeLog	2014-11-10 22:48:10 UTC (rev 175833)
+++ trunk/LayoutTests/ChangeLog	2014-11-10 23:23:49 UTC (rev 175834)
@@ -1,3 +1,16 @@
+2014-11-10  Michael Saboff  <msab...@apple.com>
+
+        Add test for fix of REGRESSION (r174985-174986): Site display disappears
+        https://bugs.webkit.org/show_bug.cgi?id=138470
+
+        Reviewed by Geoffrey Garen.
+
+        This checks that document.write() and document.writeln() are cached and the same instance
+        is always returned.
+
+        * js/dom/document-write-functions-cached-expected.txt: Added.
+        * js/dom/document-write-functions-cached.html: Added.
+
 2014-11-04  Jer Noble  <jer.no...@apple.com>
 
         REGRESSION(r174823): Several tests fail due to canplaythrough firing before tracks are available

Added: trunk/LayoutTests/js/dom/document-write-functions-cached-expected.txt (0 => 175834)


--- trunk/LayoutTests/js/dom/document-write-functions-cached-expected.txt	                        (rev 0)
+++ trunk/LayoutTests/js/dom/document-write-functions-cached-expected.txt	2014-11-10 23:23:49 UTC (rev 175834)
@@ -0,0 +1,8 @@
+This page tests that the document functions write() and writeln() are cached. If the test passes, you'll see a PASS messages below.
+
+PASS: document.write is cached.
+PASS: document.writeln is cached.
+PASS successfullyParsed is true
+
+TEST COMPLETE
+

Added: trunk/LayoutTests/js/dom/document-write-functions-cached.html (0 => 175834)


--- trunk/LayoutTests/js/dom/document-write-functions-cached.html	                        (rev 0)
+++ trunk/LayoutTests/js/dom/document-write-functions-cached.html	2014-11-10 23:23:49 UTC (rev 175834)
@@ -0,0 +1,25 @@
+<!DOCTYPE HTML>
+<html>
+<head>
+<script src=""
+</head>
+<body>
+<p>This page tests that the document functions write() and writeln() are cached. If the test passes, you'll see a PASS messages below.</p>
+<pre id="console"></pre>
+<script>
+if (document.write === document.write)
+    debug("PASS: document.write is cached.");
+else
+    debug("FAIL: document.write is not cached, but should be.");
+
+if (document.writeln === document.writeln)
+    debug("PASS: document.writeln is cached.");
+else
+    debug("FAIL: document.writeln is not cached, but should be.");
+
+if (this.testRunner)
+    testRunner.dumpAsText();
+</script>
+<script src=""
+</body>
+</html>
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to