Bug 614350 - Web console's console object colliding with content breaks sites, additional testfix; f=rcampbell r=gavin.sharp, a=orange
authorRob Campbell <rcampbell@mozilla.com>
Fri, 10 Dec 2010 10:06:20 -0800
changeset 59078 2a75c2355ae9275f506efccdbe2769fbf76e96cf
parent 59077 8d59a3285d924ab7e598c48de5191b978bd9213d
child 59079 8a0d2af384bc632382449ec7b62e58374faa1350
push id1
push usershaver@mozilla.com
push dateTue, 04 Jan 2011 17:58:04 +0000
reviewersgavin, orange
bugs614350
milestone2.0b8pre
Bug 614350 - Web console's console object colliding with content breaks sites, additional testfix; f=rcampbell r=gavin.sharp, a=orange
dom/tests/mochitest/general/test_consoleAPI.html
--- a/dom/tests/mochitest/general/test_consoleAPI.html
+++ b/dom/tests/mochitest/general/test_consoleAPI.html
@@ -19,17 +19,18 @@ function doTest() {
   } catch (ex) {
     ok(false, "random property threw: " + ex);
   }
 
   var expectedProps = {
     "log": "function",
     "info": "function",
     "warn": "function",
-    "error": "function"
+    "error": "function",
+    "__noSuchMethod__": "function"
   };
 
   var foundProps = 0;
   for (var prop in console) {
     foundProps++;
     is(typeof(console[prop]), expectedProps[prop], "expect console prop " + prop + " exists");
   }
   is(foundProps, Object.keys(expectedProps).length, "found correct number of properties");