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

Unified Diff: LayoutTests/media/media-controls-invalid-url.html

Issue 411833006: Use the mediaControlsButton() helper more in media tests (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 5 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 | « LayoutTests/media/media-controls.js ('k') | LayoutTests/media/video-controls-toggling.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/media/media-controls-invalid-url.html
diff --git a/LayoutTests/media/media-controls-invalid-url.html b/LayoutTests/media/media-controls-invalid-url.html
index c9860f88cc566656020a534677cc97084fdee065..ae023ffad9f54c6672da9027a4b85627bac9ac19 100644
--- a/LayoutTests/media/media-controls-invalid-url.html
+++ b/LayoutTests/media/media-controls-invalid-url.html
@@ -19,15 +19,7 @@
function getTimeLineValue()
{
- var timeline;
- var shadowRoot = internals.shadowRoot(video);
-
- timeline = mediaControlsElement(shadowRoot.firstChild.firstChild, '-webkit-media-controls-timeline');
-
- if(!timeline)
- throw "Faild to find -webkit-media-controls-timeline";
-
- return timeline.value;
+ return mediaControlsButton(video, "timeline").value;
}
function error()
« no previous file with comments | « LayoutTests/media/media-controls.js ('k') | LayoutTests/media/video-controls-toggling.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698