2011-04-28 Ojan Vafai <ojan@chromium.org>
authorojan@chromium.org <ojan@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 28 Apr 2011 23:46:50 +0000 (23:46 +0000)
committerojan@chromium.org <ojan@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 28 Apr 2011 23:46:50 +0000 (23:46 +0000)
        Reviewed by Darin Adler.

        fast/harness/results.html failing in some configurations
        https://bugs.webkit.org/show_bug.cgi?id=59750

        * fast/harness/resources/results-test.js:

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

LayoutTests/ChangeLog
LayoutTests/fast/harness/resources/results-test.js

index 6253d1e..7b26e4f 100644 (file)
@@ -1,3 +1,12 @@
+2011-04-28  Ojan Vafai  <ojan@chromium.org>
+
+        Reviewed by Darin Adler.
+
+        fast/harness/results.html failing in some configurations
+        https://bugs.webkit.org/show_bug.cgi?id=59750
+
+        * fast/harness/resources/results-test.js:
+
 2011-04-28  Dan Bernstein  <mitz@apple.com>
 
         Reviewed by Simon Fraser.
index 58735b0..16b7859 100644 (file)
@@ -329,8 +329,9 @@ function runTests()
     var subtree = results.tests['fullscreen'] = {}
     subtree['full-screen-api.html'] = mockExpectation('TEXT', 'IMAGE+TEXT');
     runTest(results, function() {
-        var expectedHref = 'file://' + results.layout_tests_dir + '/fullscreen/full-screen-api.html';
-        assertTrue(document.querySelector('tbody td:first-child a').href == expectedHref);
+        // Use a regexp to match windows and unix-style paths.
+        var expectedRegExp = new RegExp('^file.*' + results.layout_tests_dir + '/fullscreen/full-screen-api.html$');
+        assertTrue(expectedRegExp.exec(document.querySelector('tbody td:first-child a').href));
     });
 
     var oldShouldUseTracLinks = shouldUseTracLinks;