|
1 // |reftest| skip-if(Android) -- bug - nsIDOMWindow.crypto throws NS_ERROR_NOT_IMPLEMENTED on Android |
|
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 = 455464; |
|
9 var summary = 'Do not assert with JIT, gczeal 2: !TRACE_RECORDER(cx) ^ (jumpTable == recordingJumpTable)'; |
|
10 var actual = 'No Crash'; |
|
11 var expect = 'No Crash'; |
|
12 |
|
13 printBugNumber(BUGNUMBER); |
|
14 printStatus (summary); |
|
15 |
|
16 if (typeof gczeal == 'undefined') |
|
17 { |
|
18 expect = actual = 'Test requires gczeal, skipped.'; |
|
19 } |
|
20 else |
|
21 { |
|
22 // Enumerate the global once before we turn on gczeal, so we're not |
|
23 // trying to do all the enumerate hook object creation with a gc on |
|
24 // every object, because that makes tests time out. |
|
25 for (z in this); |
|
26 jit(true); |
|
27 gczeal(2); |
|
28 |
|
29 a=b=c=d=0; this.__defineGetter__('g', gc); for each (y in this); |
|
30 |
|
31 gczeal(0); |
|
32 jit(false); |
|
33 } |
|
34 |
|
35 reportCompare(expect, actual, summary); |