Index: chrome/test/data/extensions/api_test/gcm/functions/incognito/test.js |
diff --git a/chrome/test/data/extensions/api_test/gcm/functions/incognito/test.js b/chrome/test/data/extensions/api_test/gcm/functions/incognito/test.js |
new file mode 100644 |
index 0000000000000000000000000000000000000000..8184b38c9303a2a7c02cc4172e69e8ebcedaca1d |
--- /dev/null |
+++ b/chrome/test/data/extensions/api_test/gcm/functions/incognito/test.js |
@@ -0,0 +1,13 @@ |
+// Copyright 2014 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+chrome.test.runTests([ |
+ function testIncognito() { |
+ chrome.gcm.register(["Sender"], function(registrationId) { |
+ chrome.test.assertEq(chrome.runtime.lastError != undefined, |
+ chrome.extension.inIncognitoContext); |
+ chrome.test.succeed(); |
+ }); |
+ } |
+]); |