Tue, 06 Jan 2015 21:39:09 +0100
Conditionally force memory storage according to privacy.thirdparty.isolate;
This solves Tor bug #9701, complying with disk avoidance documented in
https://www.torproject.org/projects/torbrowser/design/#disk-avoidance.
michael@0 | 1 | <html> |
michael@0 | 2 | |
michael@0 | 3 | <head> |
michael@0 | 4 | <title>AccessFu tests for gesture tracker.</title> |
michael@0 | 5 | |
michael@0 | 6 | <link rel="stylesheet" type="text/css" |
michael@0 | 7 | href="chrome://mochikit/content/tests/SimpleTest/test.css" /> |
michael@0 | 8 | <script type="application/javascript" |
michael@0 | 9 | src="chrome://mochikit/content/tests/SimpleTest/SimpleTest.js"></script> |
michael@0 | 10 | <script type="application/javascript" src="../common.js"></script> |
michael@0 | 11 | <script type="application/javascript" src="../layout.js"></script> |
michael@0 | 12 | <script type="application/javascript" src="./jsatcommon.js"></script> |
michael@0 | 13 | <script type="application/javascript" src="./dom_helper.js"></script> |
michael@0 | 14 | <script type="application/javascript"> |
michael@0 | 15 | |
michael@0 | 16 | function startGestureTracker() { |
michael@0 | 17 | GestureTracker.reset(); |
michael@0 | 18 | AccessFuTest.nextTest(); |
michael@0 | 19 | } |
michael@0 | 20 | |
michael@0 | 21 | function stopGestureTracker() { |
michael@0 | 22 | GestureTracker.reset(); |
michael@0 | 23 | AccessFuTest.finish(); |
michael@0 | 24 | } |
michael@0 | 25 | |
michael@0 | 26 | function doTest() { |
michael@0 | 27 | loadJSON("./gestures.json", function onSuccess(gestures) { |
michael@0 | 28 | AccessFuTest.addFunc(startGestureTracker); |
michael@0 | 29 | AccessFuTest.sequenceCleanup = GestureTracker.reset.bind( |
michael@0 | 30 | GestureTracker); |
michael@0 | 31 | gestures.forEach(AccessFuTest.addSequence); |
michael@0 | 32 | AccessFuTest.addFunc(stopGestureTracker); |
michael@0 | 33 | AccessFuTest.waitForExplicitFinish(); |
michael@0 | 34 | Logger.logLevel = Logger.DEBUG; |
michael@0 | 35 | AccessFuTest.runTests(); |
michael@0 | 36 | }); |
michael@0 | 37 | } |
michael@0 | 38 | |
michael@0 | 39 | SimpleTest.waitForExplicitFinish(); |
michael@0 | 40 | addA11yLoadEvent(doTest); |
michael@0 | 41 | </script> |
michael@0 | 42 | |
michael@0 | 43 | </head> |
michael@0 | 44 | <body> |
michael@0 | 45 | <a target="_blank" |
michael@0 | 46 | href="https://bugzilla.mozilla.org/show_bug.cgi?id=981015" |
michael@0 | 47 | title="AccessFu tests for gesture tracker."> |
michael@0 | 48 | Mozilla Bug 981015 |
michael@0 | 49 | </a> |
michael@0 | 50 | </body> |
michael@0 | 51 | </html> |