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

Unified Diff: third_party/WebKit/LayoutTests/media/controls-repaint-for-network-change-expected.html

Issue 1417683004: Media controls refer to less magic state. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebased, fixed assert. Created 5 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/LayoutTests/media/controls-repaint-for-network-change-expected.html
diff --git a/third_party/WebKit/LayoutTests/media/controls-repaint-for-network-change-expected.html b/third_party/WebKit/LayoutTests/media/controls-repaint-for-network-change-expected.html
new file mode 100644
index 0000000000000000000000000000000000000000..67744d2e3f25884361f32a8a7d0d22521878e8cd
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/media/controls-repaint-for-network-change-expected.html
@@ -0,0 +1,31 @@
+<!DOCTYPE html>
+<style>
+ /* restrict to just the play button, so the slider doesn't mismatch */
+ audio {
+ width: 40px;
+ height: 40px;
+ }
+</style>
+<script src="../resources/run-after-layout-and-paint.js"></script>
+<script src=media-file.js></script>
+<script>
+
+testRunner.waitUntilDone();
+
+function test() {
+ var src = findMediaFile("audio", "content/empty");
+ var audios = document.getElementById("audio1").src = src;
philipj_slow 2015/10/30 10:55:36 The audios variable is unused.
liberato (no reviews please) 2015/10/30 15:09:07 Done.
+
+ runAfterLayoutAndPaint(function() {
+ testRunner.notifyDone();
+ });
+}
+</script>
+
+<body onload="test()">
+ <audio id="audio0" controls></audio>
+ <audio id="audio1" controls></audio>
+ <audio id="audio2" controls></audio>
+ <p>Test that network state transitions paint audio controls properly.</p>
+</body>
+

Powered by Google App Engine
This is Rietveld 408576698