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/animations/api-readonly-object-types.html

Issue 2389323003: Test type of exposed AnimationEffectTimingReadOnly (Closed)
Patch Set: Created 4 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
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/animations/api-readonly-object-types-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/animations/api-readonly-object-types.html
diff --git a/third_party/WebKit/LayoutTests/animations/api-readonly-object-types.html b/third_party/WebKit/LayoutTests/animations/api-readonly-object-types.html
new file mode 100644
index 0000000000000000000000000000000000000000..c62839dbdde23c0145aa18b003873d673bc39ad1
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/animations/api-readonly-object-types.html
@@ -0,0 +1,28 @@
+<!DOCTYPE html>
+<meta charset=utf-8>
+<title>Read-only interface type tests</title>
+<script src="../resources/testharness.js"></script>
+<script src="../resources/testharnessreport.js"></script>
+<script src="../imported/wpt/web-animations/testcommon.js"></script>
+<body>
+<script>
+"use strict";
+
+// TODO(suzyh): Upstream these tests to W3C web platform tests
+test(function(t) {
+ var target = createDiv(t);
+ var effect = new KeyframeEffect(target, null);
+ assert_class_string(effect, "KeyframeEffect");
+ assert_class_string(effect.timing, "AnimationEffectTiming");
+}, "KeyframeEffect constructor creates and exposes an AnimationEffectTiming"
+ + " object");
+
+test(function(t) {
+ var target = createDiv(t);
+ var effect = new KeyframeEffectReadOnly(target, null);
+ assert_class_string(effect, "KeyframeEffectReadOnly");
+ assert_class_string(effect.timing, "AnimationEffectTimingReadOnly");
+}, "KeyframeEffectReadOnly constructor creates and exposes an"
+ + " AnimationEffectTimingReadOnly object");
+</script>
+</body>
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/animations/api-readonly-object-types-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698