OLD | NEW |
1 <script> | 1 <script> |
2 var expectedEventData; | 2 var expectedEventData; |
3 var capturedEventData; | 3 var capturedEventData; |
4 | 4 |
5 function expect(data) { | 5 function expect(data) { |
6 expectedEventData = data; | 6 expectedEventData = data; |
7 capturedEventData = []; | 7 capturedEventData = []; |
8 } | 8 } |
9 | 9 |
10 function checkExpectations() { | 10 function checkExpectations() { |
(...skipping 27 matching lines...) Expand all Loading... |
38 { frameId: 0, | 38 { frameId: 0, |
39 tabId: tabId, | 39 tabId: tabId, |
40 timeStamp: 0, | 40 timeStamp: 0, |
41 transitionQualifiers: "", | 41 transitionQualifiers: "", |
42 transitionType: "link", | 42 transitionType: "link", |
43 url: getURL('simpleLoad/a.html') }]); | 43 url: getURL('simpleLoad/a.html') }]); |
44 chrome.tabs.update(tabId, { url: getURL('simpleLoad/a.html') }); | 44 chrome.tabs.update(tabId, { url: getURL('simpleLoad/a.html') }); |
45 }, | 45 }, |
46 | 46 |
47 /* Navigates to a.html that redirects to b.html (using javascript) | 47 /* Navigates to a.html that redirects to b.html (using javascript) |
48 after a delay of 500ms, so the initial navigation is completed and | 48 after a delay of 1s, so the initial navigation is completed and |
49 the redirection is marked as client_redirect */ | 49 the redirection is marked as client_redirect */ |
50 function clientRedirect() { | 50 function clientRedirect() { |
51 expect([ | 51 expect([ |
52 { frameId: 0, | 52 { frameId: 0, |
53 tabId: tabId, | 53 tabId: tabId, |
54 timeStamp: 0, | 54 timeStamp: 0, |
55 transitionQualifiers: "", | 55 transitionQualifiers: "", |
56 transitionType: "link", | 56 transitionType: "link", |
57 url: getURL('clientRedirect/a.html') }, | 57 url: getURL('clientRedirect/a.html') }, |
58 { frameId: 0, | 58 { frameId: 0, |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
104 tabId: tabId, | 104 tabId: tabId, |
105 timeStamp: 0, | 105 timeStamp: 0, |
106 transitionQualifiers: "", | 106 transitionQualifiers: "", |
107 transitionType: "link", | 107 transitionType: "link", |
108 url: getURL('iframe/a.html') }]); | 108 url: getURL('iframe/a.html') }]); |
109 chrome.tabs.update(tabId, { url: getURL('iframe/a.html') }); | 109 chrome.tabs.update(tabId, { url: getURL('iframe/a.html') }); |
110 }, | 110 }, |
111 ]); | 111 ]); |
112 }); | 112 }); |
113 </script> | 113 </script> |
OLD | NEW |