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

Unified Diff: LayoutTests/compositing/drag-opacity-crash.html

Issue 214053003: Don't use stale compositing state in LocalFrame::nodeImage (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 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 | LayoutTests/compositing/drag-opacity-crash-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/compositing/drag-opacity-crash.html
diff --git a/LayoutTests/compositing/drag-opacity-crash.html b/LayoutTests/compositing/drag-opacity-crash.html
new file mode 100644
index 0000000000000000000000000000000000000000..cd681a60252660442593761351dddad8c4ed36cb
--- /dev/null
+++ b/LayoutTests/compositing/drag-opacity-crash.html
@@ -0,0 +1,28 @@
+<!DOCTYPE HTML>
+<html>
+<style>
+ #crasher {
+ width: 200px;
+ height: 200px;
+ background-color: tomato;
+ }
+</style>
+Test for crbug.com/354373: This test passes if it does not crash.<br/>
+<div id="crasher" draggable="true"></div>
+<script>
+ internals.settings.setForceCompositingMode(true);
+
+ onload = function() {
+ document.getElementById('crasher').addEventListener('dragstart', function() {
+ this.style.opacity = '0.5';
+ });
+ eventSender.mouseMoveTo(75, 75);
+ eventSender.mouseDown();
+ eventSender.mouseMoveTo(500, 400);
+ eventSender.mouseUp();
+
+ if (window.testRunner)
+ testRunner.dumpAsText();
+ }
+</script>
+</html>
« no previous file with comments | « no previous file | LayoutTests/compositing/drag-opacity-crash-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698