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

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

Issue 2684993003: Remove TextTrack.{add,remove}Region (Closed)
Patch Set: Update webexposed Created 3 years, 10 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 | « no previous file | third_party/WebKit/LayoutTests/webexposed/global-interface-listing-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/media/track/regions-webvtt/vtt-region-list.html
diff --git a/third_party/WebKit/LayoutTests/media/track/regions-webvtt/vtt-region-list.html b/third_party/WebKit/LayoutTests/media/track/regions-webvtt/vtt-region-list.html
deleted file mode 100644
index a3cc48e7e01f11a29235de8612e0581f0714fe5d..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/media/track/regions-webvtt/vtt-region-list.html
+++ /dev/null
@@ -1,63 +0,0 @@
-<!DOCTYPE html>
-<title>Tests VTTRegionList functionality: length, operator[], and getRegionById().</title>
-<script src="../../../resources/testharness.js"></script>
-<script src="../../../resources/testharnessreport.js"></script>
-<script>
-test(function() {
- var testTrack = document.createElement('track');
-
- assert_equals(testTrack.track.mode, 'disabled');
- assert_equals(testTrack.track.regions, null);
-
- testTrack.track.mode = 'hidden';
- var regions = testTrack.track.regions;
-
- assert_true(regions instanceof VTTRegionList, 'instanceof');
-
- assert_equals(regions.length, 0);
-
- var region = new VTTRegion();
- region.id = 'TestId';
-
- assert_equals(region.track, null);
-
- testTrack.track.addRegion(region);
-
- assert_equals(regions.length, 1);
- assert_equals(regions[0], region);
- assert_equals(regions[0].track, testTrack.track);
-
- assert_equals(region.track, testTrack.track);
-
- var updatedRegion = new VTTRegion();
- updatedRegion.id = region.id;
- updatedRegion.viewportAnchorX = 59;
- updatedRegion.viewportAnchorY = 68;
- updatedRegion.regionAnchorX = 20;
- updatedRegion.regionAnchorY = 30;
- updatedRegion.height = 5;
- updatedRegion.width = 87;
- updatedRegion.scroll = 'up';
-
- testTrack.track.addRegion(updatedRegion);
- assert_equals(regions[0].viewportAnchorX, updatedRegion.viewportAnchorX);
- assert_equals(regions[0].viewportAnchorY, updatedRegion.viewportAnchorY);
- assert_equals(regions[0].regionAnchorX, updatedRegion.regionAnchorX);
- assert_equals(regions[0].regionAnchorY, updatedRegion.regionAnchorY);
- assert_equals(regions[0].height, updatedRegion.height);
- assert_equals(regions[0].width, updatedRegion.width);
- assert_equals(regions[0].scroll, updatedRegion.scroll);
-
- assert_not_equals(regions[0], updatedRegion);
-
- testTrack.track.addRegion(region);
- assert_equals(regions.length, 1);
- testTrack.track.removeRegion(region);
- assert_equals(regions.length, 0);
-
- assert_throws('NotFoundError', function() { testTrack.track.removeRegion(region); });
-
- // FIXME(109818): Update test for multiple initial regions (after parsing is supported).
-});
-</script>
-</html>
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/webexposed/global-interface-listing-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698