Bug 729474. (Av1) name/test_browserui.xul: Improve log, to help diagnose. r=surkov.alexander.
authorSerge Gautherie <sgautherie.bz@free.fr>
Wed, 22 Feb 2012 14:45:24 +0100
changeset 88831 a227041e66ad6b8fe37bb5212deb66e1ab1b4f07
parent 88830 2d065305b7d25191eab42473e29b008c285e2a5e
child 88913 e722d2ab78daf1684db51ee3c87d4adb7759302e
push idunknown
push userunknown
push dateunknown
reviewerssurkov.alexander
bugs729474
milestone13.0a1
Bug 729474. (Av1) name/test_browserui.xul: Improve log, to help diagnose. r=surkov.alexander.
accessible/tests/mochitest/name/test_browserui.xul
--- a/accessible/tests/mochitest/name/test_browserui.xul
+++ b/accessible/tests/mochitest/name/test_browserui.xul
@@ -50,18 +50,19 @@
 
       this.eventSeq = [
         new focusChecker(tabDocumentAt, 1)
       ];
 
       this.check = function switchTab_check(aEvent)
       {
         var title = getAccessible(browserDocument()).name;
-        ok(title.indexOf(aEvent.accessible.name) != -1,
-           "Window title contains the name of active tab document");
+        isnot(title.indexOf(aEvent.accessible.name), -1,
+              "Window title contains the name of active tab document" +
+              " (Is '" + aEvent.accessible.name + "' in '" + title + "'?)");
       }
 
       this.getID = function switchTab_getID() { return "switch tab"; }
     }
 
     ////////////////////////////////////////////////////////////////////////////
     // Tests