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

Unified Diff: LayoutTests/media/controls-slider-appearance-crash.html

Issue 556453007: Make slider thumb painting bail out when the node is null. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 3 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/media/controls-slider-appearance-crash-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/media/controls-slider-appearance-crash.html
diff --git a/LayoutTests/media/controls-slider-appearance-crash.html b/LayoutTests/media/controls-slider-appearance-crash.html
new file mode 100644
index 0000000000000000000000000000000000000000..498bb5e3ea40c3f936855309b316488d257f4eb0
--- /dev/null
+++ b/LayoutTests/media/controls-slider-appearance-crash.html
@@ -0,0 +1,30 @@
+<!DOCTYPE html>
+
+<script src="../resources/js-test.js"></script>
+<script>
+description("This test ensures that applying media control slider thumb appearance to pseudo-elements does not cause a crash.");
+</script>
+
+<style>
+#sliderthumb, #volume-sliderthumb {
+ width: 100px;
+ height: 100px;
+ overflow: scroll;
+}
+#sliderthumb::-webkit-scrollbar {
+ -webkit-appearance: media-sliderthumb;
+}
+#volume-sliderthumb::-webkit-scrollbar {
+ -webkit-appearance: media-volume-sliderthumb;
+}
+</style>
+
+<div id="sliderthumb"></div>
+<div id="volume-sliderthumb"></div>
+
+<script>
+if (window.testRunner) {
+ testRunner.waitUntilDone();
+ testRunner.displayAsyncThen(function() { testRunner.notifyDone(); });
+}
+</script>
« no previous file with comments | « no previous file | LayoutTests/media/controls-slider-appearance-crash-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698