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

Side by Side Diff: third_party/WebKit/Source/web/tests/ActivityLoggerTest.cpp

Issue 1525793006: Revert of Load data URI images in an async way according to spec (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years 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 | « third_party/WebKit/Source/core/loader/ImageLoader.cpp ('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 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "config.h" 5 #include "config.h"
6 6
7 #include "bindings/core/v8/ScriptController.h" 7 #include "bindings/core/v8/ScriptController.h"
8 #include "bindings/core/v8/ScriptSourceCode.h" 8 #include "bindings/core/v8/ScriptSourceCode.h"
9 #include "bindings/core/v8/V8Binding.h" 9 #include "bindings/core/v8/V8Binding.h"
10 #include "bindings/core/v8/V8DOMActivityLogger.h" 10 #include "bindings/core/v8/V8DOMActivityLogger.h"
(...skipping 500 matching lines...) Expand 10 before | Expand all | Expand 10 after
511 const char* code = 511 const char* code =
512 "document.write('<iframe src=\\\'data:text/html;charset=utf-8,A\\\'></if rame>');" 512 "document.write('<iframe src=\\\'data:text/html;charset=utf-8,A\\\'></if rame>');"
513 "document.write('<img src=\\\'data:text/html;charset=utf-8,B\\\'></img>' );" 513 "document.write('<img src=\\\'data:text/html;charset=utf-8,B\\\'></img>' );"
514 "document.write('<link rel=\\\'stylesheet\\\' href=\\\'data:text/html;ch arset=utf-8,C\\\'></link>');" 514 "document.write('<link rel=\\\'stylesheet\\\' href=\\\'data:text/html;ch arset=utf-8,C\\\'></link>');"
515 "document.write('<script src=\\\'data:text/html;charset=utf-8,D\\\'></sc ript>');" 515 "document.write('<script src=\\\'data:text/html;charset=utf-8,D\\\'></sc ript>');"
516 "document.close();" 516 "document.close();"
517 "var xhr = new XMLHttpRequest(); xhr.open('GET', 'data:text/html;charset =utf-8,E'); xhr.send();"; 517 "var xhr = new XMLHttpRequest(); xhr.open('GET', 'data:text/html;charset =utf-8,E'); xhr.send();";
518 const char* expectedActivities = 518 const char* expectedActivities =
519 "blinkAddElement | iframe | data:text/html;charset=utf-8,A\n" 519 "blinkAddElement | iframe | data:text/html;charset=utf-8,A\n"
520 "blinkRequestResource | Main resource | data:text/html;charset=utf-8,A\n " 520 "blinkRequestResource | Main resource | data:text/html;charset=utf-8,A\n "
521 "blinkRequestResource | Image | data:text/html;charset=utf-8,B\n"
521 "blinkAddElement | link | stylesheet | data:text/html;charset=utf-8,C\n" 522 "blinkAddElement | link | stylesheet | data:text/html;charset=utf-8,C\n"
522 "blinkRequestResource | CSS stylesheet | data:text/html;charset=utf-8,C\ n" 523 "blinkRequestResource | CSS stylesheet | data:text/html;charset=utf-8,C\ n"
523 "blinkAddElement | script | data:text/html;charset=utf-8,D\n" 524 "blinkAddElement | script | data:text/html;charset=utf-8,D\n"
524 "blinkRequestResource | Script | data:text/html;charset=utf-8,D\n" 525 "blinkRequestResource | Script | data:text/html;charset=utf-8,D\n"
525 "blinkRequestResource | XMLHttpRequest | data:text/html;charset=utf-8,E\ n" 526 "blinkRequestResource | XMLHttpRequest | data:text/html;charset=utf-8,E" ;
526 "blinkRequestResource | Image | data:text/html;charset=utf-8,B";
527 executeScriptInMainWorld(code); 527 executeScriptInMainWorld(code);
528 ASSERT_TRUE(verifyActivities("")); 528 ASSERT_TRUE(verifyActivities(""));
529 executeScriptInIsolatedWorld(code); 529 executeScriptInIsolatedWorld(code);
530 ASSERT_TRUE(verifyActivities(expectedActivities)); 530 ASSERT_TRUE(verifyActivities(expectedActivities));
531 } 531 }
532 532
533 } // namespace blink 533 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/loader/ImageLoader.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698