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

Unified Diff: third_party/WebKit/LayoutTests/css3/motion-path/use-count-motion-path.html

Issue 2358433005: CSS Motion Path: Use counters for motion properties having effect (Closed)
Patch Set: consumeOffsetPath accepts use counter 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
Index: third_party/WebKit/LayoutTests/css3/motion-path/use-count-motion-path.html
diff --git a/third_party/WebKit/LayoutTests/css3/motion-path/use-count-motion-path.html b/third_party/WebKit/LayoutTests/css3/motion-path/use-count-motion-path.html
new file mode 100644
index 0000000000000000000000000000000000000000..d7135be99e55be342934a3c685e9ee8d3dc04560
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/css3/motion-path/use-count-motion-path.html
@@ -0,0 +1,26 @@
+<!DOCTYPE html>
+<head>
+ <script src="../../resources/testharness.js"></script>
+ <script src="../../resources/testharnessreport.js"></script>
+ <style>
+ .n { motion-path: none; }
+ </style>
+</head>
+
+<div id="target"></div>
+<script>
+var CSSMotionInEffect = 1616; // From UseCounter.h
+var CSSOffsetInEffect = 1617; // From UseCounter.h
+
+test(function() {
+ assert_false(internals.isUseCounted(document, CSSMotionInEffect));
+
+ var styleElement = document.createElement('style');
+ styleElement.textContent = ".p { motion-path: path('m 0 0 h 1'); }";
+ document.head.appendChild(styleElement);
+
+ assert_true(internals.isUseCounted(document, CSSMotionInEffect));
+
+ assert_false(internals.isUseCounted(document, CSSOffsetInEffect));
+});
+</script>

Powered by Google App Engine
This is Rietveld 408576698