Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(786)

Side by Side Diff: chrome/test/data/extensions/api_test/system/test.html

Issue 8662008: Implement chrome.systemPrivate.getIncognitoModeAvailability extension API function (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: merged with ToT Created 9 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/test/data/extensions/api_test/system/manifest.json ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 <script>
2 // System API test
3 // Run with browser_tests --gtest_filter=ExtensionApiTest.SystemApi
4
5 function expect(expected, message) {
6 return chrome.test.callbackPass(function(value) {
7 chrome.test.assertEq(expected, value, message);
8 });
9 }
10
11 chrome.test.runTests([
12 function getIncognitoModeAvailabilityTest() {
13 chrome.systemPrivate.getIncognitoModeAvailability(expect(
14 'disabled',
15 "Pref `chrome.system.getIncognitoModeAvailability` is expected to " +
16 "return 'disabled'"));
17 },
18 ]);
19 </script>
OLDNEW
« no previous file with comments | « chrome/test/data/extensions/api_test/system/manifest.json ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698