Bug 778127 - change only some test check messages, r=michal
authorHonza Bambas <honzab.moz@firemni.cz>
Thu, 27 Sep 2012 21:35:07 +0200
changeset 114642 ea28d9b3e93957492ff65827d273cf474fe17047
parent 114641 42200a47baea03c5cacfa5b78df4fe1aaff29e1b
child 114643 60d3d0e84b2b2b454b1a80fce7cbf1fec40f2560
push id1708
push userakeybl@mozilla.com
push dateMon, 19 Nov 2012 21:10:21 +0000
treeherdermozilla-beta@27b14fe50103 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmichal
bugs778127
milestone18.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 778127 - change only some test check messages, r=michal
dom/tests/mochitest/ajax/offline/test_updatingManifest.html
--- a/dom/tests/mochitest/ajax/offline/test_updatingManifest.html
+++ b/dom/tests/mochitest/ajax/offline/test_updatingManifest.html
@@ -104,17 +104,17 @@ function whitelistOnLoad(version)
 }
 
 
 // Start of the test function chain
 // ================================
 
 function manifestCached()
 {
-  OfflineTest.is(gStep, 0);
+  OfflineTest.is(gStep, 0, "Got manifestCached in step 0, gStep=" + gStep);
 
   reloadLocations([fallbackFrame1, fallbackFrame2]);
   waitForLocations([fallbackFrame1, fallbackFrame2],
       fallbackLoaded);
 }
 
 function fallbackLoaded()
 {
@@ -185,17 +185,17 @@ function implicitCached()
 
       applicationCache.update();
       // Invokes manifestUpdated()
     });
 }
 
 function manifestUpdated()
 {
-  OfflineTest.ok(gStep == 1 || gStep == 2);
+  OfflineTest.ok(gStep == 1 || gStep == 2, "Got manifestUpdated in step 1 or 2, gStep=" + gStep);
 
   switch (gStep)
   {
   case 1:
     // Processing second version of the manifest.
 
     // Whitelist entries
     checkFallbackAndWhitelisting("http://mochi.test:8888/tests/dom/tests/mochitest/ajax/offline/onwhitelist.html", "", false);
@@ -292,17 +292,17 @@ function manifestUpdated()
     break;
   }
 }
 
 function manifestNoUpdate()
 {
   applicationCache.onnoupdate = null;
 
-  OfflineTest.ok(gStep == 3);
+  OfflineTest.ok(gStep == 3, "Got manifestNoUpdate in step 3, gStep=" + gStep);
 
   OfflineTest.is(applicationCache.status, SpecialPowers.Ci.nsIDOMOfflineResourceList.UPDATEREADY,
         "we have associated application cache and update is pending (4)");
   applicationCache.swapCache();
   OfflineTest.is(applicationCache.status, SpecialPowers.Ci.nsIDOMOfflineResourceList.IDLE,
         "we have associated application cache (4)");
 
   gGotFrameVersion = 0;