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

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

Issue 481753002: Use Shadow DOM to display fallback content for images (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Updated Created 6 years, 1 month 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 | Annotate | Revision Log
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 "FrameTestHelpers.h" 7 #include "FrameTestHelpers.h"
8 #include "bindings/core/v8/ScriptController.h" 8 #include "bindings/core/v8/ScriptController.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 490 matching lines...) Expand 10 before | Expand all | Expand 10 after
501 "document.write('<script src=\\\'data:text/html;charset=utf-8,D\\\'></sc ript>');" 501 "document.write('<script src=\\\'data:text/html;charset=utf-8,D\\\'></sc ript>');"
502 "var xhr = new XMLHttpRequest(); xhr.open('GET', 'data:text/html;charset =utf-8,E'); xhr.send();"; 502 "var xhr = new XMLHttpRequest(); xhr.open('GET', 'data:text/html;charset =utf-8,E'); xhr.send();";
503 const char* expectedActivities = 503 const char* expectedActivities =
504 "blinkAddElement | iframe | data:text/html;charset=utf-8,A\n" 504 "blinkAddElement | iframe | data:text/html;charset=utf-8,A\n"
505 "blinkRequestResource | Main resource | data:text/html;charset=utf-8,A\n " 505 "blinkRequestResource | Main resource | data:text/html;charset=utf-8,A\n "
506 "blinkRequestResource | Image | data:text/html;charset=utf-8,B\n" 506 "blinkRequestResource | Image | data:text/html;charset=utf-8,B\n"
507 "blinkAddElement | link | stylesheet | data:text/html;charset=utf-8,C\n" 507 "blinkAddElement | link | stylesheet | data:text/html;charset=utf-8,C\n"
508 "blinkRequestResource | CSS stylesheet | data:text/html;charset=utf-8,C\ n" 508 "blinkRequestResource | CSS stylesheet | data:text/html;charset=utf-8,C\ n"
509 "blinkAddElement | script | data:text/html;charset=utf-8,D\n" 509 "blinkAddElement | script | data:text/html;charset=utf-8,D\n"
510 "blinkRequestResource | Script | data:text/html;charset=utf-8,D\n" 510 "blinkRequestResource | Script | data:text/html;charset=utf-8,D\n"
511 "blinkRequestResource | XMLHttpRequest | data:text/html;charset=utf-8,E" ; 511 "blinkRequestResource | XMLHttpRequest | data:text/html;charset=utf-8,E\ n"
512 "blinkRequestResource | Image | data:image/png;base64,iVBORw0KGgoAAAANSU hEUgAAABAAAAAQCAIAAACQkWg2AAABO0lEQVR4XpWRTytEYRTG3/tHLGQrNfEBpKQkmc8gG0ulxpRsfQ 0TTXbI3kZ2ys4tsyBZjN1N8idlYUYaxJzzOKf7ztG1MfN0ens69/x6n/eeYPuo7npS9bCOriXDMQOCTV bO3X+6Wp9mICZWAHqquE1qAA8EQRiFcmYMsQKsAHM2DeKV4qj48ZHB++bHwcXTQ+Mz6u/rABwSIQO0wK W5wuLU8E5yWzlJS7OFvaUJMGelAFkkYici1NIXB4DQbH1JY2ggVoD4N1Kb2AAA149vUmLLxbHaTaNynI JggAz7G7jTyjB5wOv79/LupT47Cu0rcT6S/ai755YUiMM4cgw4/I3ERAaI3y/PiFnYPHOBtfORLKX38A aBERaJbHFeAOY3Eu8ZOYByi7Pl+hzWN+nwWjVB15LhYHXr1PWiH0AYTw4BBjO9AAAAAElFTkSuQmCC";
512 executeScriptInMainWorld(code); 513 executeScriptInMainWorld(code);
513 ASSERT_TRUE(verifyActivities("")); 514 ASSERT_TRUE(verifyActivities(""));
514 executeScriptInIsolatedWorld(code); 515 executeScriptInIsolatedWorld(code);
515 ASSERT_TRUE(verifyActivities(expectedActivities)); 516 ASSERT_TRUE(verifyActivities(expectedActivities));
516 } 517 }
517 518
518 } // namespace 519 } // namespace
OLDNEW
« Source/core/html/HTMLImageFallbackHelper.cpp ('K') | « Source/core/rendering/RenderImage.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698