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

Unified Diff: LayoutTests/media/track/regions-webvtt/text-track-region-dom-layout-expected.txt

Issue 25798003: Enable WebVTT regions for runtime testing, updated tests and minor fixes (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebased Created 7 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: LayoutTests/media/track/regions-webvtt/text-track-region-dom-layout-expected.txt
diff --git a/LayoutTests/media/track/regions-webvtt/text-track-region-dom-layout-expected.txt b/LayoutTests/media/track/regions-webvtt/text-track-region-dom-layout-expected.txt
new file mode 100644
index 0000000000000000000000000000000000000000..19edc67681576468afe42d5332a705f1801ae4ca
--- /dev/null
+++ b/LayoutTests/media/track/regions-webvtt/text-track-region-dom-layout-expected.txt
@@ -0,0 +1,19 @@
+Tests default DOM layout structure for a TextTrackRegion.
+
+EVENT(canplaythrough)
+** The text track has only one region **
+EXPECTED (testTrack.regions.length == '1') OK
+
+** Inspecting the default DOM layout used for regions display **
+
+** Only one region should be displayed **
+EXPECTED (region.children.length == '1') OK
+
+** The child of the region should be the container **
+EXPECTED (region.children[0] == container == 'true') OK
+
+** Default pseudo IDs should be set properly
+EXPECTED (region.getAttribute('part') == '-webkit-media-text-track-region') OK
+EXPECTED (container.getAttribute('part') == '-webkit-media-text-track-region-container') OK
+END OF TEST
+

Powered by Google App Engine
This is Rietveld 408576698