Bug 1163898 followup. Fix a test that was expecting the buggy mozAnon behavior. CLOSED TREE.
authorBoris Zbarsky <bzbarsky@mit.edu>
Tue, 12 May 2015 17:14:34 -0400
changeset 243615 6ffbd3150f6c45e3085f96a19adb54d8f1c46dc0
parent 243614 7eef3687730a099be5cab9f61bdc588bb5e8adfc
child 243616 cca3ce6947c2bbf6cd3ca2526e7047882dc4538a
push id28744
push userkwierso@gmail.com
push dateWed, 13 May 2015 18:12:16 +0000
treeherdermozilla-central@324c3423deaf [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
bugs1163898
milestone41.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 1163898 followup. Fix a test that was expecting the buggy mozAnon behavior. CLOSED TREE.
dom/base/test/test_bug927196.html
--- a/dom/base/test/test_bug927196.html
+++ b/dom/base/test/test_bug927196.html
@@ -16,41 +16,41 @@ https://bugzilla.mozilla.org/show_bug.cg
 </div>
 <pre id="test">
 <script class="testbody" type="text/javascript">
 
 /** Test for Bug 927196 **/
 
 function startTest() {
   req = new XMLHttpRequest({mozSystem: true});
-  is(req.mozAnon, true, "XMLHttpRequest should be mozAnon");
+  is(req.mozAnon, true, "XMLHttpRequest should be mozAnon (3)");
 
   req = new XMLHttpRequest({mozAnon: true});
-  is(req.mozAnon, true, "XMLHttpRequest should be mozAnon");
-  is(req.mozSystem, false, "XMLHttpRequest should not be mozSystem");
+  is(req.mozAnon, true, "XMLHttpRequest should be mozAnon (4)");
+  is(req.mozSystem, false, "XMLHttpRequest should not be mozSystem (4)");
 
   req = new XMLHttpRequest({mozAnon: true, mozSystem: true});
-  is(req.mozAnon, true, "XMLHttpRequest should be mozAnon");
-  is(req.mozSystem, true, "XMLHttpRequest should be mozSystem");
+  is(req.mozAnon, true, "XMLHttpRequest should be mozAnon (5)");
+  is(req.mozSystem, true, "XMLHttpRequest should be mozSystem (5)");
 
   req = new XMLHttpRequest({mozAnon: false, mozSystem: true});
-  is(req.mozAnon, true, "XMLHttpRequest should be mozAnon");
+  is(req.mozAnon, true, "XMLHttpRequest should be mozAnon (6)");
 
   SimpleTest.finish();
 }
 
 SimpleTest.waitForExplicitFinish();
 
 var req = new XMLHttpRequest({mozAnon: true});
 is(req.mozAnon, true, "XMLHttpRequest should be mozAnon");
 is(req.mozSystem, false, "XMLHttpRequest should not be mozSystem");
 
 req = new XMLHttpRequest({mozAnon: true, mozSystem: true});
-is(req.mozAnon, false, "XMLHttpRequest should be mozAnon");
-is(req.mozSystem, false, "XMLHttpRequest should not be mozSystem");
+is(req.mozAnon, true, "XMLHttpRequest should be mozAnon (2)");
+is(req.mozSystem, false, "XMLHttpRequest should not be mozSystem (2)");
 
 addLoadEvent(function() {
    SpecialPowers.pushPermissions([{'type': 'systemXHR', 'allow': true, 'context': document}], startTest);
 });
 </script>
 </pre>
 </body>
 </html>