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..a4ac8c22579d9e11e0ac828acdd99db387b8b90b |
--- /dev/null |
+++ b/third_party/WebKit/LayoutTests/media/controls-repaint-for-network-change-expected.html |
@@ -0,0 +1,30 @@ |
+<!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"); |
+ document.getElementById("audio1").src = src; |
+ |
+ runAfterLayoutAndPaint(function() { |
+ testRunner.notifyDone(); |
+ }); |
+} |
+</script> |
+ |
+<body onload="test()"> |
+ <audio controls></audio> |
+ <audio id="audio1" controls></audio> |
+ <p>Test that network state transitions paint audio controls properly.</p> |
+</body> |
+ |