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> |