Update To 11.40.268.0
[platform/framework/web/crosswalk.git] / src / chrome / test / data / webui / net_internals / log_view_painter.js
index d9621ef..7a4e8f2 100644 (file)
@@ -189,6 +189,8 @@ function painterTestURLRequest() {
   var testCase = {};
   testCase.tickOffset = '1337911098446';
   testCase.logCreationTime = 1338864634013;
+  testCase.loadFlags = LoadFlag.MAIN_FRAME | LoadFlag.MAYBE_USER_GESTURE |
+                       LoadFlag.VERIFY_EV_CERT;
 
   testCase.logEntries = [
     {
@@ -202,7 +204,7 @@ function painterTestURLRequest() {
     },
     {
       'params': {
-        'load_flags': 68222976,
+        'load_flags': testCase.loadFlags,
         'method': 'GET',
         'priority': 4,
         'url': 'http://www.google.com/'
@@ -226,7 +228,7 @@ function painterTestURLRequest() {
     },
     {
       'params': {
-        'load_flags': 68222976,
+        'load_flags': testCase.loadFlags,
         'method': 'GET',
         'priority': 4,
         'url': 'http://www.google.com/'
@@ -733,15 +735,17 @@ 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 = 68222976 ' +
-    '(MAIN_FRAME | MAYBE_USER_GESTURE ' +
+'                            --> load_flags = ' +
+    testCase.loadFlags.toString() +
+    ' (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 = 68222976 ' +
-    '(MAIN_FRAME | MAYBE_USER_GESTURE ' +
+'                            --> load_flags = ' +
+    testCase.loadFlags.toString() +
+    ' (MAIN_FRAME | MAYBE_USER_GESTURE ' +
     '| VERIFY_EV_CERT)\n' +
 '                            --> method = "GET"\n' +
 '                            --> priority = 4\n' +
@@ -893,6 +897,8 @@ function painterTestURLRequestIncompleteFromLoadedLogSingleEvent() {
 function painterTestNetError() {
   var testCase = {};
   testCase.tickOffset = '1337911098446';
+  testCase.loadFlags = LoadFlag.MAIN_FRAME | LoadFlag.MAYBE_USER_GESTURE |
+                       LoadFlag.VERIFY_EV_CERT;
 
   testCase.logEntries = [
     {
@@ -906,7 +912,7 @@ function painterTestNetError() {
     },
     {
       'params': {
-        'load_flags': 68222976,
+        'load_flags': testCase.loadFlags,
         'method': 'GET',
         'priority': 4,
         'url': 'http://www.doesnotexistdomain.com/'
@@ -930,7 +936,7 @@ function painterTestNetError() {
     },
     {
       'params': {
-        'load_flags': 68222976,
+        'load_flags': testCase.loadFlags,
         'method': 'GET',
         'priority': 4,
         'url': 'http://www.doesnotexistdomain.com/'
@@ -1065,15 +1071,17 @@ 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 = 68222976 (' +
-        'MAIN_FRAME | MAYBE_USER_GESTURE ' +
+'                            --> load_flags = ' +
+        testCase.loadFlags.toString() +
+        ' (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 = 68222976 (' +
-        'MAIN_FRAME | MAYBE_USER_GESTURE ' +
+'                            --> load_flags = ' +
+        testCase.loadFlags.toString() +
+        ' (MAIN_FRAME | MAYBE_USER_GESTURE ' +
         '| VERIFY_EV_CERT)\n' +
 '                            --> method = "GET"\n' +
 '                            --> priority = 4\n' +
@@ -2047,11 +2055,13 @@ function painterTestSSLVersionFallback() {
 function painterTestInProgressURLRequest() {
   var testCase = {};
   testCase.tickOffset = '1337911098446';
+  testCase.loadFlags = LoadFlag.MAIN_FRAME | LoadFlag.MAYBE_USER_GESTURE |
+                       LoadFlag.VERIFY_EV_CERT;
 
   testCase.logEntries = [
     {
       'params': {
-        'load_flags': 68222976,
+        'load_flags': testCase.loadFlags,
         'load_state': LoadState.READING_RESPONSE,
         'method': 'GET',
         'url': 'http://www.MagicPonyShopper.com'
@@ -2095,8 +2105,9 @@ function painterTestInProgressURLRequest() {
 
   testCase.expectedText =
 't=1338864773994 [st=  0] +REQUEST_ALIVE  [dt=375]\n' +
-'                          --> load_flags = 68222976 ' +
-    '(MAIN_FRAME | MAYBE_USER_GESTURE ' +
+'                          --> load_flags = ' +
+    testCase.loadFlags.toString() +
+    ' (MAIN_FRAME | MAYBE_USER_GESTURE ' +
     '| VERIFY_EV_CERT)\n' +
 '                          --> load_state = ' + LoadState.READING_RESPONSE +
     ' (READING_RESPONSE)\n' +