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

Side by Side Diff: chrome/test/data/extensions/api_test/webnavigation/navigation/test.html

Issue 3352011: Increase the delay in WebNavigationEvents test from 500ms to 1s. (Closed)
Patch Set: Created 10 years, 3 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
« no previous file with comments | « chrome/test/data/extensions/api_test/webnavigation/navigation/iframe/b.html ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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>
OLDNEW
« no previous file with comments | « chrome/test/data/extensions/api_test/webnavigation/navigation/iframe/b.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698