OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 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 | 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 onload = function() { | 5 onload = function() { |
6 var getURL = chrome.extension.getURL; | 6 var getURL = chrome.extension.getURL; |
7 var URL_MAIN = getURL("a.html"); | 7 var URL_MAIN = getURL("a.html"); |
8 var SUBFRAME_URL = | 8 var SUBFRAME_URL = |
9 "http://127.0.0.1:PORT/extensions/api_test/webnavigation/userAction/su
bframe.html"; | 9 "http://127.0.0.1:PORT/extensions/api_test/webnavigation/userAction/su
bframe.html"; |
10 | 10 |
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
80 { label: "subframe-onCompleted", | 80 { label: "subframe-onCompleted", |
81 event: "onCompleted", | 81 event: "onCompleted", |
82 details: { frameId: 1, | 82 details: { frameId: 1, |
83 processId: 1, | 83 processId: 1, |
84 tabId: 0, | 84 tabId: 0, |
85 timeStamp: 0, | 85 timeStamp: 0, |
86 url: SUBFRAME_URL }}, | 86 url: SUBFRAME_URL }}, |
87 | 87 |
88 { label: "b-onCreatedNavigationTarget", | 88 { label: "b-onCreatedNavigationTarget", |
89 event: "onCreatedNavigationTarget", | 89 event: "onCreatedNavigationTarget", |
90 details: { sourceFrameId: 1, | 90 details: { sourceFrameId: 0, |
91 sourceProcessId: 0, | 91 sourceProcessId: 0, |
92 sourceTabId: 0, | 92 sourceTabId: 0, |
93 tabId: 1, | 93 tabId: 1, |
94 timeStamp: 0, | 94 timeStamp: 0, |
95 url: getURL('b.html') }}, | 95 url: getURL('b.html') }}, |
96 { label: "b-onBeforeNavigate", | 96 { label: "b-onBeforeNavigate", |
97 event: "onBeforeNavigate", | 97 event: "onBeforeNavigate", |
98 details: { frameId: 0, | 98 details: { frameId: 0, |
99 parentFrameId: -1, | 99 parentFrameId: -1, |
100 processId: -1, | 100 processId: -1, |
(...skipping 30 matching lines...) Expand all Loading... |
131 "b-onCreatedNavigationTarget", | 131 "b-onCreatedNavigationTarget", |
132 "b-onBeforeNavigate" ]]); | 132 "b-onBeforeNavigate" ]]); |
133 | 133 |
134 // Notify the api test that we're waiting for the user. | 134 // Notify the api test that we're waiting for the user. |
135 chrome.test.notifyPass(); | 135 chrome.test.notifyPass(); |
136 }, | 136 }, |
137 ]); | 137 ]); |
138 }); | 138 }); |
139 }); | 139 }); |
140 }; | 140 }; |
OLD | NEW |