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

Side by Side Diff: chrome/test/data/extensions/api_test/incognito/apis_disabled/background.html

Issue 8758008: Move another block of extension tests to manifest_version 2. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: 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
OLDNEW
1 <!--
2 * Copyright (c) 2011 The Chromium Authors. All rights reserved. Use of this
3 * source code is governed by a BSD-style license that can be found in the
4 * LICENSE file.
5 -->
1 <script> 6 <script>
2 var normalWindow, normalTab;
3
4 var pass = chrome.test.callbackPass;
5 var assertEq = chrome.test.assertEq;
6 var assertTrue = chrome.test.assertTrue;
7
8 chrome.test.runTests([
9 function getAllWindows() {
10 // The test harness should have set us up with 2 windows: 1 incognito
11 // and 1 regular. We should only see the regular one.
12 chrome.windows.getAll({populate: true}, pass(function(windows) {
13 assertEq(1, windows.length);
14 normalWindow = windows[0];
15 assertTrue(!normalWindow.incognito);
16 }));
17 },
18
19 function tabEvents() {
20 chrome.test.listenOnce(chrome.tabs.onCreated, function(tab) {
21 assertTrue(!tab.incognito);
22 });
23
24 chrome.test.createIncognitoTab("about:blank");
25 chrome.tabs.create({url: "about:blank"}, pass());
26 },
27 ]);
28 </script> 7 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698