Thu, 15 Jan 2015 15:59:08 +0100
Implement a real Private Browsing Mode condition by changing the API/ABI;
This solves Tor bug #9701, complying with disk avoidance documented in
https://www.torproject.org/projects/torbrowser/design/#disk-avoidance.
michael@0 | 1 | # test default-preferences |
michael@0 | 2 | |
michael@0 | 3 | # test default-preferences with a pref() |
michael@0 | 4 | default-preferences pref(font.size.variable.x-western,24) |
michael@0 | 5 | != font-default.html font-size-16.html |
michael@0 | 6 | == font-default.html font-size-24.html |
michael@0 | 7 | |
michael@0 | 8 | # test that a default preference can be overridden |
michael@0 | 9 | pref(font.size.variable.x-western,16) == font-default.html font-size-16.html |
michael@0 | 10 | pref(font.size.variable.x-western,16) != font-default.html font-size-24.html |
michael@0 | 11 | |
michael@0 | 12 | # test that default preferences are kept when other test-specific preferences are set |
michael@0 | 13 | pref(font.size.variable.zh-HK,36) != font-default.html font-size-16.html |
michael@0 | 14 | pref(font.size.variable.zh-HK,36) == font-default.html font-size-24.html |
michael@0 | 15 | |
michael@0 | 16 | # test default-preferences with test-pref() and ref-pref() |
michael@0 | 17 | default-preferences test-pref(font.size.variable.x-western,16) ref-pref(font.size.variable.x-western,24) |
michael@0 | 18 | != font-default.html font-default.html |
michael@0 | 19 | == font-default.html font-size-16.html |
michael@0 | 20 | == font-size-24.html font-default.html |
michael@0 | 21 | |
michael@0 | 22 | # test that default-preferences does not apply to include commands |
michael@0 | 23 | include default-preferences-include.list |
michael@0 | 24 | |
michael@0 | 25 | # test resetting default-preferences |
michael@0 | 26 | default-preferences |
michael@0 | 27 | == font-default.html font-default.html |
michael@0 | 28 |