Bug 801576 - Bustage fix. r=me
authorBobby Holley <bobbyholley@gmail.com>
Wed, 24 Oct 2012 13:19:33 +0200
changeset 111369 ab316048d5e18454545ef3b5974b8c24b33cc5dc
parent 111368 2e780fd05fbf4da309fef5795205ca446fbf1c02
child 111370 5e3b672c303a3027a03d4072aebce95dddf87eef
push id93
push usernmatsakis@mozilla.com
push dateWed, 31 Oct 2012 21:26:57 +0000
reviewersme
bugs801576
milestone19.0a1
Bug 801576 - Bustage fix. r=me
dom/tests/mochitest/whatwg/test_bug500328.html
--- a/dom/tests/mochitest/whatwg/test_bug500328.html
+++ b/dom/tests/mochitest/whatwg/test_bug500328.html
@@ -395,16 +395,18 @@ function runTest() {
 
   ok(!ifLink.href.match("mytestdir"),
      "inner frame's link shouldn't contain 'mytestdir'.");
 
   /*
    * TEST 2 tests that pushstate's same-origin checks are correct.
    */
   var filename = 'file_bug500328_2.html';
+  var dirname = document.location.pathname.replace(/[^\/]*$/, '');
+  statusMsg("Dirname is: " + dirname);
   iframeCw.location = filename;
   iframe.onload = onChildLoad;
   enableChildLoadCallback();
   yield;
 
   // This function tries to pushstate and replacestate to the given URL and
   // fails the test if the calls succeed.
   var tryBadPushAndReplaceState = function(url) {