1 // Copyright (c) 2011 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.
6 // Navigates to a page with a link with target=_blank. Then simulates a click
7 // on that link and verifies that the new tab has a correct tab ID assigned.
11 { label
: "a-onBeforeRequest",
12 event
: "onBeforeRequest",
14 url
: getURL("newTab/a.html"),
15 frameUrl
: getURL("newTab/a.html")
18 { label
: "a-onResponseStarted",
19 event
: "onResponseStarted",
21 url
: getURL("newTab/a.html"),
24 statusLine
: "HTTP/1.1 200 OK",
25 // Request to chrome-extension:// url has no IP.
28 { label
: "a-onCompleted",
31 url
: getURL("newTab/a.html"),
34 statusLine
: "HTTP/1.1 200 OK",
35 // Request to chrome-extension:// url has no IP.
38 { label
: "b-onBeforeRequest",
39 event
: "onBeforeRequest",
41 url
: getURL("newTab/b.html"),
42 frameUrl
: getURL("newTab/b.html"),
46 { label
: "b-onResponseStarted",
47 event
: "onResponseStarted",
49 url
: getURL("newTab/b.html"),
52 statusLine
: "HTTP/1.1 200 OK",
53 // Request to chrome-extension:// url has no IP.
57 { label
: "b-onCompleted",
60 url
: getURL("newTab/b.html"),
63 statusLine
: "HTTP/1.1 200 OK",
64 // Request to chrome-extension:// url has no IP.
70 ["a-onBeforeRequest", "a-onResponseStarted", "a-onCompleted",
71 "b-onBeforeRequest", "b-onResponseStarted", "b-onCompleted"] ]);
72 // Notify the api test that we're waiting for the user.
73 chrome
.test
.notifyPass();