1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
7 "http://www.a.com:PORT/extensions/api_test/webnavigation/crash/a.html";
9 "http://www.a.com:PORT/extensions/api_test/webnavigation/crash/b.html";
10 chrome.tabs.create({"url": "about:blank"}, function(tab) {
12 chrome.test.getConfig(function(config) {
13 var fixPort = function(url) {
14 return url.replace(/PORT/g, config.testServer.port);
16 URL_A = fixPort(URL_A);
17 URL_B = fixPort(URL_B);
19 chrome.test.runTests([
20 // Navigates to an URL, then the renderer crashes, the navigates to
24 { label: "a-onBeforeNavigate",
25 event: "onBeforeNavigate",
26 details: { frameId: 0,
32 { label: "a-onCommitted",
34 details: { frameId: 0,
38 transitionQualifiers: [],
39 transitionType: "typed",
41 { label: "a-onDOMContentLoaded",
42 event: "onDOMContentLoaded",
43 details: { frameId: 0,
48 { label: "a-onCompleted",
50 details: { frameId: 0,
55 { label: "b-onBeforeNavigate",
56 event: "onBeforeNavigate",
57 details: { frameId: 0,
63 { label: "b-onCommitted",
65 details: { frameId: 0,
69 transitionQualifiers: [],
70 transitionType: "typed",
72 { label: "b-onDOMContentLoaded",
73 event: "onDOMContentLoaded",
74 details: { frameId: 0,
79 { label: "b-onCompleted",
81 details: { frameId: 0,
86 [ navigationOrder("a-"), navigationOrder("b-") ]);
88 // Notify the api test that we're waiting for the user.
89 chrome.test.notifyPass();