1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/testing/mochitest/tests/Harness_sanity/test_sanity_cleanup2.html Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,24 @@ 1.4 +<!-- Any copyright is dedicated to the Public Domain. 1.5 + - http://creativecommons.org/publicdomain/zero/1.0/ --> 1.6 +<!DOCTYPE HTML> 1.7 +<html> 1.8 +<head> 1.9 + <title>SimpleTest.registerCleanupFunction test</title> 1.10 + <script type="text/javascript" src="/tests/SimpleTest/SimpleTest.js"></script> 1.11 + <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css" /> 1.12 +</head> 1.13 +<body> 1.14 +<script class="testbody" type="text/javascript"> 1.15 +for (pref of [1, 2]) { 1.16 + try { 1.17 + SpecialPowers.getBoolPref("simpletest.cleanup." + pref); 1.18 + ok(false, "Cleanup function should have unset pref"); 1.19 + } 1.20 + catch(ex) { 1.21 + ok(true, "Pref was not set"); 1.22 + } 1.23 +} 1.24 + 1.25 +</script> 1.26 +</body> 1.27 +</html>