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

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

Issue 2592113003: Load data URI images in an async way according to spec (take 3) (Closed)
Patch Set: Fixed more devtools reliance on sync loading Created 3 years, 11 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 | « third_party/WebKit/Source/devtools/front_end/timeline/TimelineEventOverview.js ('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 "bindings/core/v8/ScriptController.h" 5 #include "bindings/core/v8/ScriptController.h"
6 #include "bindings/core/v8/ScriptSourceCode.h" 6 #include "bindings/core/v8/ScriptSourceCode.h"
7 #include "bindings/core/v8/V8Binding.h" 7 #include "bindings/core/v8/V8Binding.h"
8 #include "bindings/core/v8/V8DOMActivityLogger.h" 8 #include "bindings/core/v8/V8DOMActivityLogger.h"
9 #include "public/web/WebCache.h" 9 #include "public/web/WebCache.h"
10 #include "testing/gtest/include/gtest/gtest.h" 10 #include "testing/gtest/include/gtest/gtest.h"
(...skipping 562 matching lines...) Expand 10 before | Expand all | Expand 10 after
573 "document.write('<link rel=\\\'stylesheet\\\' " 573 "document.write('<link rel=\\\'stylesheet\\\' "
574 "href=\\\'data:text/html;charset=utf-8,C\\\'></link>');" 574 "href=\\\'data:text/html;charset=utf-8,C\\\'></link>');"
575 "document.write('<script " 575 "document.write('<script "
576 "src=\\\'data:text/html;charset=utf-8,D\\\'></script>');" 576 "src=\\\'data:text/html;charset=utf-8,D\\\'></script>');"
577 "document.close();" 577 "document.close();"
578 "var xhr = new XMLHttpRequest(); xhr.open('GET', " 578 "var xhr = new XMLHttpRequest(); xhr.open('GET', "
579 "'data:text/html;charset=utf-8,E'); xhr.send();"; 579 "'data:text/html;charset=utf-8,E'); xhr.send();";
580 const char* expectedActivities = 580 const char* expectedActivities =
581 "blinkAddElement | iframe | data:text/html;charset=utf-8,A\n" 581 "blinkAddElement | iframe | data:text/html;charset=utf-8,A\n"
582 "blinkRequestResource | Main resource | data:text/html;charset=utf-8,A\n" 582 "blinkRequestResource | Main resource | data:text/html;charset=utf-8,A\n"
583 "blinkRequestResource | Image | data:text/html;charset=utf-8,B\n"
584 "blinkAddElement | link | stylesheet | data:text/html;charset=utf-8,C\n" 583 "blinkAddElement | link | stylesheet | data:text/html;charset=utf-8,C\n"
585 "blinkRequestResource | CSS stylesheet | data:text/html;charset=utf-8,C\n" 584 "blinkRequestResource | CSS stylesheet | data:text/html;charset=utf-8,C\n"
586 "blinkAddElement | script | data:text/html;charset=utf-8,D\n" 585 "blinkAddElement | script | data:text/html;charset=utf-8,D\n"
587 "blinkRequestResource | Script | data:text/html;charset=utf-8,D\n" 586 "blinkRequestResource | Script | data:text/html;charset=utf-8,D\n"
588 "blinkRequestResource | XMLHttpRequest | data:text/html;charset=utf-8,E"; 587 "blinkRequestResource | XMLHttpRequest | data:text/html;charset=utf-8,E\n"
588 "blinkRequestResource | Image | data:text/html;charset=utf-8,B\n";
589 executeScriptInMainWorld(code); 589 executeScriptInMainWorld(code);
590 ASSERT_TRUE(verifyActivities("")); 590 ASSERT_TRUE(verifyActivities(""));
591 executeScriptInIsolatedWorld(code); 591 executeScriptInIsolatedWorld(code);
592 ASSERT_TRUE(verifyActivities(expectedActivities)); 592 ASSERT_TRUE(verifyActivities(expectedActivities));
593 } 593 }
594 594
595 } // namespace blink 595 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/devtools/front_end/timeline/TimelineEventOverview.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698