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

Unified Diff: LayoutTests/fast/css/cubic-bezier-with-multiple-calcs-crash.html

Issue 369313002: m_parsedCalculation has to be cleared between parsing cubic-bezier() (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Test update Created 6 years, 5 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 | LayoutTests/fast/css/cubic-bezier-with-multiple-calcs-crash-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/fast/css/cubic-bezier-with-multiple-calcs-crash.html
diff --git a/LayoutTests/fast/css/cubic-bezier-with-multiple-calcs-crash.html b/LayoutTests/fast/css/cubic-bezier-with-multiple-calcs-crash.html
new file mode 100644
index 0000000000000000000000000000000000000000..e7f12610c06cfb641ac58cc9ab951eef5ad14198
--- /dev/null
+++ b/LayoutTests/fast/css/cubic-bezier-with-multiple-calcs-crash.html
@@ -0,0 +1,23 @@
+<!DOCTYPE html>
+<html>
+<style>
+* {
+ transition-timing-function: cubic-bezier(0, 0, calc(0.5), calc(1.0));
+}
+</style>
+</head>
+<body>
+ <p>This tests that calc() values in cubic-bezier functions are read correctly.</p>
+ <p id="result"></p>
+</body>
+<script>
+ if (window.testRunner)
+ testRunner.dumpAsText();
+
+ var body = document.getElementsByTagName("body")[0];
+ if (window.getComputedStyle(body)["transitionTimingFunction"] == "cubic-bezier(0, 0, 0.5, 1)")
+ document.getElementById("result").innerText = "PASS";
+ else
+ document.getElementById("result").innerText = "FAIL";
+</script>
+</html>
« no previous file with comments | « no previous file | LayoutTests/fast/css/cubic-bezier-with-multiple-calcs-crash-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698