Bug 578476 - Test for unexpected pass conditions in the JSON decoder. r=jwalden
authorSaint Wesonga <wesongathedeveloper@yahoo.com>
Sun, 18 Jul 2010 10:20:42 +0200
changeset 47870 83550fdf1b23182330f5115bc62e8f8ad49e9e9b
parent 47869 0e1da826a6042f45d6a245b1e14570192029422c
child 47871 aae7ff3ffc789ab35d1d88b8e8d63a26fb1bf9a0
push id14456
push userdgottwald@mozilla.com
push dateSun, 18 Jul 2010 08:27:01 +0000
treeherderautoland@358360ecb806 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjwalden
bugs578476
milestone2.0b2pre
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 578476 - Test for unexpected pass conditions in the JSON decoder. r=jwalden
dom/src/json/test/unit/test_decode.js
--- a/dom/src/json/test/unit/test_decode.js
+++ b/dom/src/json/test/unit/test_decode.js
@@ -189,16 +189,19 @@ function test_files() {
       } else {
 
         do_throw("UNREACHED");
 
       }
 
     } catch (ex) {
       // expected from parsing invalid JSON
+      if (i == 4 || i == 9 || i == 13 || i == 18) {
+        do_throw("Unexpected pass in " + path);
+      }
     }
   }
   
 }
 
 function run_test() {
   decode_strings();
   test_files();