regress-418540.js (1368B)
1 // |reftest| skip-if(xulRuntime.shell||(winWidget&&isDebugBuild)) slow 2 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ 3 /* This Source Code Form is subject to the terms of the Mozilla Public 4 * License, v. 2.0. If a copy of the MPL was not distributed with this 5 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ 6 7 //----------------------------------------------------------------------------- 8 var BUGNUMBER = 418540; 9 var summary = 'Do not assert: OBJ_IS_NATIVE(obj)'; 10 var actual = 'No Crash'; 11 var expect = 'No Crash'; 12 13 14 //----------------------------------------------------------------------------- 15 test(); 16 //----------------------------------------------------------------------------- 17 18 function test() 19 { 20 printBugNumber(BUGNUMBER); 21 printStatus (summary); 22 23 gDelayTestDriverEnd = true; 24 window.onload = boom; 25 } 26 27 function boom() 28 { 29 var p; 30 var b = document.createElement("body"); 31 var v = document.createElement("div"); 32 b.getAttribute("id") 33 v.getAttribute("id") 34 for (p in v) { } 35 for (p in b) { } 36 b.__proto__ = []; 37 try { aC(v, null); } catch(e) { } 38 try { aC(b, null); } catch(e) { } 39 40 setTimeout(check, 1000); 41 } 42 43 function aC(r, n) { r.appendChild(n); } 44 45 function check() 46 { 47 expect = actual = 'No Crash'; 48 gDelayTestDriverEnd = false; 49 reportCompare(expect, actual, summary); 50 jsTestDriverEnd(); 51 }