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

Unified 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/test/data/extensions/api_test/system/manifest.json ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/data/extensions/api_test/system/test.html
diff --git a/chrome/test/data/extensions/api_test/system/test.html b/chrome/test/data/extensions/api_test/system/test.html
new file mode 100644
index 0000000000000000000000000000000000000000..d96bb3ed11a60be7a7f4f9398c3822869612b6c2
--- /dev/null
+++ b/chrome/test/data/extensions/api_test/system/test.html
@@ -0,0 +1,19 @@
+<script>
+// System API test
+// Run with browser_tests --gtest_filter=ExtensionApiTest.SystemApi
+
+function expect(expected, message) {
+ return chrome.test.callbackPass(function(value) {
+ chrome.test.assertEq(expected, value, message);
+ });
+}
+
+chrome.test.runTests([
+ function getIncognitoModeAvailabilityTest() {
+ chrome.systemPrivate.getIncognitoModeAvailability(expect(
+ 'disabled',
+ "Pref `chrome.system.getIncognitoModeAvailability` is expected to " +
+ "return 'disabled'"));
+ },
+]);
+</script>
« 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