2008-05-04 Sam Weinig <sam@webkit.org>
authorweinig@apple.com <weinig@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sun, 4 May 2008 21:52:43 +0000 (21:52 +0000)
committerweinig@apple.com <weinig@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sun, 4 May 2008 21:52:43 +0000 (21:52 +0000)
        Reviewed by Maciej Stachowiak.

        Don't print out the full url.

        * fast/dom/Window/dom-access-from-closure-iframe-expected.txt:
        * fast/dom/Window/dom-access-from-closure-window-expected.txt:
        * fast/dom/Window/resources/dom-access-from-closure-iframe-child.html:
        * fast/dom/Window/resources/dom-access-from-closure-window-child.html:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@32853 268f45cc-cd09-0410-ab3c-d52691b4dbfc

LayoutTests/ChangeLog
LayoutTests/fast/dom/Window/dom-access-from-closure-iframe-expected.txt
LayoutTests/fast/dom/Window/dom-access-from-closure-window-expected.txt
LayoutTests/fast/dom/Window/resources/dom-access-from-closure-iframe-child.html
LayoutTests/fast/dom/Window/resources/dom-access-from-closure-window-child.html

index b551236..38c326b 100644 (file)
@@ -1,3 +1,14 @@
+2008-05-04  Sam Weinig  <sam@webkit.org>
+
+        Reviewed by Maciej Stachowiak.
+
+        Don't print out the full url.
+
+        * fast/dom/Window/dom-access-from-closure-iframe-expected.txt:
+        * fast/dom/Window/dom-access-from-closure-window-expected.txt:
+        * fast/dom/Window/resources/dom-access-from-closure-iframe-child.html:
+        * fast/dom/Window/resources/dom-access-from-closure-window-child.html:
+
 2008-05-03  Rob Buis  <buis@kde.org>
 
         Reviewed by Sam.
index 00841e9..e9e2c19 100644 (file)
@@ -1,5 +1,5 @@
-document.URL: file:///Users/weinig/Code/webkit/OpenSource/LayoutTests/fast/dom/Window/resources/notify-parent-done.html
-window.document.URL: file:///Users/weinig/Code/webkit/OpenSource/LayoutTests/fast/dom/Window/resources/notify-parent-done.html
+document.URL: LayoutTests/fast/dom/Window/resources/notify-parent-done.html
+window.document.URL: LayoutTests/fast/dom/Window/resources/notify-parent-done.html
 name: child
 window.name: child
 
index c82af37..9127dff 100644 (file)
@@ -1,5 +1,5 @@
-document.URL: file:///Users/weinig/Code/webkit/OpenSource/LayoutTests/fast/dom/Window/resources/notify-opener-done.html
-window.document.URL: file:///Users/weinig/Code/webkit/OpenSource/LayoutTests/fast/dom/Window/resources/notify-opener-done.html
+document.URL: LayoutTests/fast/dom/Window/resources/notify-opener-done.html
+window.document.URL: LayoutTests/fast/dom/Window/resources/notify-opener-done.html
 name: child
 window.name: child
 
index e2aa799..4550d12 100644 (file)
@@ -1,9 +1,14 @@
 <script>
     parent.accessFrame = function()
     {
+        function normalizeURL(url)
+        {
+            return url.substring(url.lastIndexOf("LayoutTests"));
+        }
+
         try {
-            parent.log("document.URL: " + document.URL);
-            parent.log("window.document.URL: " + window.document.URL);
+            parent.log("document.URL: " + normalizeURL(document.URL));
+            parent.log("window.document.URL: " + normalizeURL(window.document.URL));
             parent.log("name: " + name);
             parent.log("window.name: " + window.name);
         } catch (e) {
index 66fbe26..3691095 100644 (file)
@@ -1,9 +1,14 @@
 <script>
     opener.accessFrame = function()
     {
+        function normalizeURL(url)
+        {
+            return url.substring(url.lastIndexOf("LayoutTests"));
+        }
+
         try {
-            opener.log("document.URL: " + document.URL);
-            opener.log("window.document.URL: " + window.document.URL);
+            opener.log("document.URL: " + normalizeURL(document.URL));
+            opener.log("window.document.URL: " + normalizeURL(window.document.URL));
             opener.log("name: " + name);
             opener.log("window.name: " + window.name);
         } catch (e) {