js/xpconnect/tests/unit/test_watchdog_toggle.js

changeset 0
6474c204b198
equal deleted inserted replaced
-1:000000000000 0:1fbfc4dd7bc0
1 /* This Source Code Form is subject to the terms of the Mozilla Public
2 * License, v. 2.0. If a copy of the MPL was not distributed with this
3 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
4
5 function testBody() {
6 var defaultBehavior = isWatchdogEnabled();
7 setWatchdogEnabled(!defaultBehavior);
8 setWatchdogEnabled(defaultBehavior);
9 checkWatchdog(defaultBehavior, continueTest);
10 yield;
11 do_test_finished();
12 yield;
13 }

mercurial