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

Unified Diff: chrome/test/data/webui/net_internals/log_view_painter.js

Issue 12310075: Cache failover to LOAD_PREFERRING_CACHE if network response suggests offline. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Incorporated comments. Created 7 years, 9 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | net/base/load_flags_list.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/data/webui/net_internals/log_view_painter.js
diff --git a/chrome/test/data/webui/net_internals/log_view_painter.js b/chrome/test/data/webui/net_internals/log_view_painter.js
index fc8e7b60f9195fc1427575937483021d67a7ffab..33493afd38f79115c921031dfebd9f4879c178c3 100644
--- a/chrome/test/data/webui/net_internals/log_view_painter.js
+++ b/chrome/test/data/webui/net_internals/log_view_painter.js
@@ -189,7 +189,7 @@ function painterTestURLRequest() {
},
{
'params': {
- 'load_flags': 68223104,
+ 'load_flags': 136446208,
'method': 'GET',
'priority': 4,
'url': 'http://www.google.com/'
@@ -213,7 +213,7 @@ function painterTestURLRequest() {
},
{
'params': {
- 'load_flags': 68223104,
+ 'load_flags': 136446208,
'method': 'GET',
'priority': 4,
'url': 'http://www.google.com/'
@@ -720,14 +720,14 @@ function painterTestURLRequest() {
testCase.expectedText =
't=1338864633224 [st= 0] +REQUEST_ALIVE [dt=789]\n' +
't=1338864633238 [st= 14] URL_REQUEST_START_JOB [dt=8]\n' +
-' --> load_flags = 68223104 ' +
+' --> load_flags = 136446208 ' +
'(ENABLE_LOAD_TIMING | MAIN_FRAME | MAYBE_USER_GESTURE ' +
'| VERIFY_EV_CERT)\n' +
' --> method = "GET"\n' +
' --> priority = 4\n' +
' --> url = "http://www.google.com/"\n' +
't=1338864633248 [st= 24] +URL_REQUEST_START_JOB [dt=279]\n' +
-' --> load_flags = 68223104 ' +
+' --> load_flags = 136446208 ' +
'(ENABLE_LOAD_TIMING | MAIN_FRAME | MAYBE_USER_GESTURE ' +
'| VERIFY_EV_CERT)\n' +
' --> method = "GET"\n' +
@@ -806,7 +806,7 @@ function painterTestURLRequestIncomplete() {
},
{
'params': {
- 'load_flags': 128,
+ 'load_flags': 256,
'method': 'GET',
'priority': 4,
'url': 'http://www.google.com/'
@@ -833,7 +833,7 @@ function painterTestURLRequestIncomplete() {
testCase.expectedText =
't=1338864633224 [st= 0] +REQUEST_ALIVE [dt=?]\n' +
't=1338864633356 [st=132] URL_REQUEST_START_JOB [dt=60]\n' +
-' --> load_flags = 128 (ENABLE_LOAD_TIMING)\n' +
+' --> load_flags = 256 (ENABLE_LOAD_TIMING)\n' +
' --> method = "GET"\n' +
' --> priority = 4\n' +
' --> url = "http://www.google.com/"';
@@ -851,7 +851,7 @@ function painterTestURLRequestIncompleteFromLoadedLog() {
testCase.expectedText =
't=1338864633224 [st= 0] +REQUEST_ALIVE [dt=789+]\n' +
't=1338864633356 [st=132] URL_REQUEST_START_JOB [dt=60]\n' +
-' --> load_flags = 128 (ENABLE_LOAD_TIMING)\n' +
+' --> load_flags = 256 (ENABLE_LOAD_TIMING)\n' +
' --> method = "GET"\n' +
' --> priority = 4\n' +
' --> url = "http://www.google.com/"\n' +
@@ -879,7 +879,7 @@ function painterTestNetError() {
},
{
'params': {
- 'load_flags': 68223104,
+ 'load_flags': 136446208,
'method': 'GET',
'priority': 4,
'url': 'http://www.doesnotexistdomain.com/'
@@ -903,7 +903,7 @@ function painterTestNetError() {
},
{
'params': {
- 'load_flags': 68223104,
+ 'load_flags': 136446208,
'method': 'GET',
'priority': 4,
'url': 'http://www.doesnotexistdomain.com/'
@@ -1038,14 +1038,16 @@ function painterTestNetError() {
testCase.expectedText =
't=1338864773894 [st= 0] +REQUEST_ALIVE [dt=475]\n' +
't=1338864773901 [st= 7] URL_REQUEST_START_JOB [dt=5]\n' +
-' --> load_flags = 68223104 (ENABLE_LOAD_TIMING | ' +
- 'MAIN_FRAME | MAYBE_USER_GESTURE | VERIFY_EV_CERT)\n' +
+' --> load_flags = 136446208 (' +
+ 'ENABLE_LOAD_TIMING | MAIN_FRAME | MAYBE_USER_GESTURE ' +
+ '| VERIFY_EV_CERT)\n' +
' --> method = "GET"\n' +
' --> priority = 4\n' +
' --> url = "http://www.doesnotexistdomain.com/"\n' +
't=1338864773906 [st= 12] +URL_REQUEST_START_JOB [dt=245]\n' +
-' --> load_flags = 68223104 (ENABLE_LOAD_TIMING | ' +
- 'MAIN_FRAME | MAYBE_USER_GESTURE | VERIFY_EV_CERT)\n' +
+' --> load_flags = 136446208 (' +
+ 'ENABLE_LOAD_TIMING | MAIN_FRAME | MAYBE_USER_GESTURE ' +
+ '| VERIFY_EV_CERT)\n' +
' --> method = "GET"\n' +
' --> priority = 4\n' +
' --> url = "http://www.doesnotexistdomain.com/"\n' +
@@ -1715,7 +1717,7 @@ function painterTestInProgressURLRequest() {
testCase.logEntries = [
{
'params': {
- 'load_flags': 68223104,
+ 'load_flags': 136446208,
'load_state': LoadState.READING_RESPONSE,
'method': 'GET',
'url': 'http://www.MagicPonyShopper.com'
@@ -1759,7 +1761,7 @@ function painterTestInProgressURLRequest() {
testCase.expectedText =
't=1338864773994 [st= 0] +REQUEST_ALIVE [dt=375]\n' +
-' --> load_flags = 68223104 ' +
+' --> load_flags = 136446208 ' +
'(ENABLE_LOAD_TIMING | MAIN_FRAME | MAYBE_USER_GESTURE ' +
'| VERIFY_EV_CERT)\n' +
' --> load_state = ' + LoadState.READING_RESPONSE +
« no previous file with comments | « no previous file | net/base/load_flags_list.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698