[SCM] WebKit Debian packaging branch, webkit-1.2, updated. upstream/1.1.90-6072-g9a69373

hamaji at chromium.org hamaji at chromium.org
Wed Apr 7 23:44:59 UTC 2010


The following commit has been merged in the webkit-1.2 branch:
commit f35a076ca345b75eee1510de0ef9881befd605dd
Author: hamaji at chromium.org <hamaji at chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Date:   Tue Nov 17 09:27:13 2009 +0000

    2009-11-17  Yuta Kitamura  <yutak at chromium.org>
    
            Reviewed by Darin Adler.
    
            Add a test to check the behavior of submitting a GET form to <about:blank>.
    
            Currently Safari redirects the browser to <about:blank?>, while some other
            browsers do not (including Firefox and Chromium). The objective of this test is
            to express the current behavior of Safari and to become ready to remove
            unintentional dependency on it from several tests.
    
            Some HTTP tests submit a GET form to about:blank
            https://bugs.webkit.org/show_bug.cgi?id=30423
    
            * fast/forms/get-forms-to-about-blank-expected.txt: Added.
            * fast/forms/get-forms-to-about-blank.html: Added.
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@51069 268f45cc-cd09-0410-ab3c-d52691b4dbfc

diff --git a/LayoutTests/ChangeLog b/LayoutTests/ChangeLog
index a6366be..910d1e5 100644
--- a/LayoutTests/ChangeLog
+++ b/LayoutTests/ChangeLog
@@ -1,3 +1,20 @@
+2009-11-17  Yuta Kitamura  <yutak at chromium.org>
+
+        Reviewed by Darin Adler.
+
+        Add a test to check the behavior of submitting a GET form to <about:blank>.
+        
+        Currently Safari redirects the browser to <about:blank?>, while some other
+        browsers do not (including Firefox and Chromium). The objective of this test is
+        to express the current behavior of Safari and to become ready to remove
+        unintentional dependency on it from several tests.
+
+        Some HTTP tests submit a GET form to about:blank
+        https://bugs.webkit.org/show_bug.cgi?id=30423
+
+        * fast/forms/get-forms-to-about-blank-expected.txt: Added.
+        * fast/forms/get-forms-to-about-blank.html: Added.
+
 2009-11-16  Alexey Proskuryakov  <ap at apple.com>
 
         Disabling WebSocket tests on Tiger and Windows again, as they still time out.
diff --git a/LayoutTests/fast/forms/get-forms-to-about-blank-expected.txt b/LayoutTests/fast/forms/get-forms-to-about-blank-expected.txt
new file mode 100644
index 0000000..050fd59
--- /dev/null
+++ b/LayoutTests/fast/forms/get-forms-to-about-blank-expected.txt
@@ -0,0 +1,11 @@
+Submitting a GET form to <about:blank> should redirect the browser to <about:blank?>.
+
+On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
+
+
+PASS iframe.contentDocument.URL is "about:blank"
+PASS iframe.contentDocument.URL is "about:blank?"
+PASS successfullyParsed is true
+
+TEST COMPLETE
+
diff --git a/LayoutTests/fast/forms/get-forms-to-about-blank.html b/LayoutTests/fast/forms/get-forms-to-about-blank.html
new file mode 100644
index 0000000..02859a8
--- /dev/null
+++ b/LayoutTests/fast/forms/get-forms-to-about-blank.html
@@ -0,0 +1,45 @@
+<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
+<html>
+  <head>
+    <link rel="stylesheet" href="../../fast/js/resources/js-test-style.css">
+    <script src="../../fast/js/resources/js-test-pre.js"></script>
+    <script src="../../fast/js/resources/js-test-post-function.js"></script>
+    <script>
+var successfullyParsed = false;
+
+function run() {
+    if (window.layoutTestController) {
+        window.layoutTestController.dumpAsText();
+        window.layoutTestController.waitUntilDone();
+    }
+
+    description('Submitting a GET form to &lt;about:blank&gt; should redirect the browser to &lt;about:blank?&gt;.');
+    document.getElementById('form').submit();
+}
+
+var initialFrameLoaded = false;
+var iframe;
+function onFrameLoad()
+{
+    iframe = document.getElementById('iframe');
+    if (!initialFrameLoaded) {
+        shouldBe('iframe.contentDocument.URL', '"about:blank"');
+        initialFrameLoaded = true;
+        return;
+    }
+
+    shouldBe('iframe.contentDocument.URL', '"about:blank?"');
+    successfullyParsed = true;
+    isSuccessfullyParsed();
+    if (window.layoutTestController)
+        window.layoutTestController.notifyDone();
+}
+    </script>
+  </head>
+  <body onload="run();">
+    <p id="description"></p>
+    <div id="console"></div>
+    <iframe id="iframe" name="iframe" onload="onFrameLoad();" style="display: none;"></iframe>
+    <form id="form" action="about:blank" method="GET" target="iframe" style="display: none;"></form>
+  </body>
+</html>

-- 
WebKit Debian packaging



More information about the Pkg-webkit-commits mailing list