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

Unified Diff: LayoutTests/media/track/regions-webvtt/vtt-region-list.html

Issue 55653003: Rename TextTrackRegion/TextTrackRegionList to VTTRegion/VTTRegionList (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: update test expectations Created 7 years, 1 month 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/vtt-region-list.html
diff --git a/LayoutTests/media/track/regions-webvtt/text-track-region-list.html b/LayoutTests/media/track/regions-webvtt/vtt-region-list.html
similarity index 90%
rename from LayoutTests/media/track/regions-webvtt/text-track-region-list.html
rename to LayoutTests/media/track/regions-webvtt/vtt-region-list.html
index 976e066800cfe308c3eb7e48f3f53b8fdc01e3a2..a3c19c7b6f4ef134e4adb98688127d38b14fa00a 100644
--- a/LayoutTests/media/track/regions-webvtt/text-track-region-list.html
+++ b/LayoutTests/media/track/regions-webvtt/vtt-region-list.html
@@ -22,11 +22,14 @@
testTrack.track.mode = "hidden";
regions = testTrack.track.regions;
- consoleWrite("<br>** The regions attribute should be an empty TextTrackRegionList **");
+ consoleWrite("<br>** Test instanceof VTTRegionList **");
+ testExpected("regions instanceof VTTRegionList", true);
+
+ consoleWrite("<br>** The regions attribute should be an empty VTTRegionList **");
testExpected("regions != null", true);
testExpected("regions.length", 0);
- region = new TextTrackRegion();
+ region = new VTTRegion();
region.id = "TestId";
consoleWrite("<br>** The default value of the track attribute of the region is null**");
@@ -34,7 +37,7 @@
testTrack.track.addRegion(region);
- consoleWrite("<br>** The addRegion() method properly updates the TextTrackRegionList object **");
+ consoleWrite("<br>** The addRegion() method properly updates the VTTRegionList object **");
testExpected("regions.length", 1);
testExpected("regions[0] == region", true);
testExpected("regions[0].track == testTrack.track", true);
@@ -42,7 +45,7 @@
consoleWrite("<br>** The track attribute should correctly reflect the track to which the region was added to**");
testExpected("region.track == testTrack.track", true);
- updatedRegion = new TextTrackRegion();
+ updatedRegion = new VTTRegion();
updatedRegion.id = region.id;
updatedRegion.viewportAnchorX = 59;
updatedRegion.viewportAnchorY = 68;
@@ -90,7 +93,7 @@
</script>
</head>
<body onload="startTestWithDelay()">
- <p>Tests TextTrackRegionList functionality: length, operator[], and getRegionById()</p>
+ <p>Tests VTTRegionList functionality: length, operator[], and getRegionById()</p>
<video>
<track id="testTrack" src="captions-webvtt/captions-fast.vtt">
</video>

Powered by Google App Engine
This is Rietveld 408576698