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

Side by Side Diff: chrome/test/data/extensions/api_test/webnavigation/test_openTab.js

Issue 10826157: Check for warnings when loading extensions in browser tests. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix ExtensionTerminalPrivateApiTest.TerminalTest Created 8 years, 4 months 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 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 function runTests() { 5 onload = function() {
6 var getURL = chrome.extension.getURL; 6 var getURL = chrome.extension.getURL;
7 chrome.tabs.create({"url": "about:blank"}, function(tab) { 7 chrome.tabs.create({"url": "about:blank"}, function(tab) {
8 var tabId = tab.id; 8 var tabId = tab.id;
9 9
10 chrome.test.runTests([ 10 chrome.test.runTests([
11 // Opens a new tab from javascript. 11 // Opens a new tab from javascript.
12 function openTab() { 12 function openTab() {
13 expect([ 13 expect([
14 { label: "a-onBeforeNavigate", 14 { label: "a-onBeforeNavigate",
15 event: "onBeforeNavigate", 15 event: "onBeforeNavigate",
(...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after
190 [ navigationOrder("a-"), 190 [ navigationOrder("a-"),
191 navigationOrder("b-"), 191 navigationOrder("b-"),
192 navigationOrder("c-"), 192 navigationOrder("c-"),
193 isIFrameOf("a-", "c-"), 193 isIFrameOf("a-", "c-"),
194 ["a-onDOMContentLoaded", "a-onCreatedNavigationTarget", 194 ["a-onDOMContentLoaded", "a-onCreatedNavigationTarget",
195 "b-onBeforeNavigate"]]); 195 "b-onBeforeNavigate"]]);
196 chrome.tabs.update(tabId, { url: getURL('openTab/c.html') }); 196 chrome.tabs.update(tabId, { url: getURL('openTab/c.html') });
197 }, 197 },
198 ]); 198 ]);
199 }); 199 });
200 } 200 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698