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

Unified Diff: LayoutTests/fast/css/crash-corner-present.html

Issue 978753002: Crash test for 400997. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 10 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/fast/css/crash-corner-present-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/fast/css/crash-corner-present.html
diff --git a/LayoutTests/fast/css/crash-corner-present.html b/LayoutTests/fast/css/crash-corner-present.html
new file mode 100644
index 0000000000000000000000000000000000000000..fc521f25603bf0bb75622409d3c13627fd27580f
--- /dev/null
+++ b/LayoutTests/fast/css/crash-corner-present.html
@@ -0,0 +1,47 @@
+<!DOCTYPE html>
+<style>
+#scrollable {
+ width: 100px;
+ height: 50px;
+ overflow-x: scroll;
+}
+
+#scrollable::-webkit-scrollbar {
+ background-color: blue;
+ height: 50px;
+}
+
+#scrollable::-webkit-scrollbar:corner-present {
+ background-color: blue;
+}
+
+#filler {
+ width: 200px;
+}
+</style>
+<script>
+if (window.testRunner) {
+ testRunner.dumpAsText();
+ testRunner.waitUntilDone();
+}
+
+function removeScrollbars() {
+ requestAnimationFrame(function(){
+ scrollable.style.overflow = 'visible';
+ if (window.eventSender)
+ eventSender.mouseUp();
+ if (window.testRunner)
+ testRunner.notifyDone();
+ });
+}
+</script>
+<p>Click the blue rectangle below - PASS if no crash.</p>
+<div id="scrollable" onmousedown="removeScrollbars();">
+ <div id="filler">&nbsp;</div>
+</div>
+<script>
+if (window.eventSender) {
+ eventSender.mouseMoveTo(scrollable.offsetLeft + 1, scrollable.offsetTop + 1);
+ eventSender.mouseDown();
+}
+</script>
« no previous file with comments | « no previous file | LayoutTests/fast/css/crash-corner-present-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698