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

Side by Side Diff: LayoutTests/fast/events/touch/touch-rect-crash-on-unpromote-layer.html

Issue 637763002: Unprefix usage of -webkit-transform in tests (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 2 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
OLDNEW
1 <!DOCTYPE HTML> 1 <!DOCTYPE HTML>
2 <html> 2 <html>
3 <head> 3 <head>
4 <script src="../../../resources/js-test.js"></script> 4 <script src="../../../resources/js-test.js"></script>
5 <style> 5 <style>
6 #layer { 6 #layer {
7 position: relative; 7 position: relative;
8 left: 10px; 8 left: 10px;
9 } 9 }
10 .composited { 10 .composited {
11 -webkit-transform: translate3d(0, 0, 0); 11 transform: translate3d(0, 0, 0);
12 } 12 }
13 </style> 13 </style>
14 </head> 14 </head>
15 <body> 15 <body>
16 <div id="layer" class="composited">A layer that may or may not be composited</di v> 16 <div id="layer" class="composited">A layer that may or may not be composited</di v>
17 <p id="description"></p> 17 <p id="description"></p>
18 <div id="console"></div> 18 <div id="console"></div>
19 <script> 19 <script>
20 description("Make sure we don't crash when a layer with a touch event handle r becomes non-composited"); 20 description("Make sure we don't crash when a layer with a touch event handle r becomes non-composited");
21 21
(...skipping 19 matching lines...) Expand all
41 // Verify we now have a hit rect on the document. 41 // Verify we now have a hit rect on the document.
42 // (layout and compositing update are done by touchEventTargetLayerRects().) 42 // (layout and compositing update are done by touchEventTargetLayerRects().)
43 if (window.internals) { 43 if (window.internals) {
44 rects = window.internals.touchEventTargetLayerRects(document); 44 rects = window.internals.touchEventTargetLayerRects(document);
45 shouldBe("rects.length", "1"); 45 shouldBe("rects.length", "1");
46 shouldBeEqualToString("rects[0].layerAssociatedNode.nodeName", "#document" ); 46 shouldBeEqualToString("rects[0].layerAssociatedNode.nodeName", "#document" );
47 } 47 }
48 </script> 48 </script>
49 </body> 49 </body>
50 </html> 50 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698