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

Unified Diff: LayoutTests/imported/web-platform-tests/html/semantics/embedded-content/media-elements/interfaces/TrackEvent/constructor.html

Issue 1144143009: W3C Test: Import web-platform-tests/html/semantics (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 6 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/imported/web-platform-tests/html/semantics/embedded-content/media-elements/interfaces/TrackEvent/constructor.html
diff --git a/LayoutTests/media/track/opera/interfaces/TrackEvent/constructor.html b/LayoutTests/imported/web-platform-tests/html/semantics/embedded-content/media-elements/interfaces/TrackEvent/constructor.html
similarity index 57%
copy from LayoutTests/media/track/opera/interfaces/TrackEvent/constructor.html
copy to LayoutTests/imported/web-platform-tests/html/semantics/embedded-content/media-elements/interfaces/TrackEvent/constructor.html
index 6369beb9685d364587571cd5bd1b333dde683b4f..00b227e96ebeb4c24517fcd778301f8351da9c03 100644
--- a/LayoutTests/media/track/opera/interfaces/TrackEvent/constructor.html
+++ b/LayoutTests/imported/web-platform-tests/html/semantics/embedded-content/media-elements/interfaces/TrackEvent/constructor.html
@@ -1,7 +1,7 @@
<!doctype html>
<title>TrackEvent constructor</title>
-<script src=../../../../../resources/testharness.js></script>
-<script src=../../../../../resources/testharnessreport.js></script>
+<script src=../../../../../../../../resources/testharness.js></script>
+<script src=../../../../../../../../resources/testharnessreport.js></script>
<div id=log></div>
<script>
test(function(){
@@ -14,17 +14,11 @@ test(function(){
}, document.title+', one arg');
test(function(){
var obj = {};
- try {
- var ev = new TrackEvent('foo', {track:obj});
- assert_unreached("Expected constructor to throw TypeError");
- } catch (e) {
- assert_true(e instanceof TypeError);
- }
- var ev = new TrackEvent('foo', {});
+ var ev = new TrackEvent('foo', {track:obj});
assert_true(ev instanceof TrackEvent, 'ev instanceof TrackEvent');
assert_true(ev instanceof Event, 'ev instanceof Event');
- assert_equals(ev.track, null, 'ev.track');
+ assert_equals(ev.track, obj, 'ev.track');
ev.track = {};
- assert_equals(ev.track, null, 'ev.track after assignment');
+ assert_equals(ev.track, obj, 'ev.track after assignment');
}, document.title+', two args');
</script>

Powered by Google App Engine
This is Rietveld 408576698