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

Unified Diff: third_party/WebKit/LayoutTests/typedcssom/inlinestyle/transform.html

Issue 2313523002: Add check that the CSSValue is a valid type in CSSTransformComponent before casting (Closed)
Patch Set: Add a test Created 4 years, 3 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/Source/core/css/cssom/CSSTransformComponent.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/typedcssom/inlinestyle/transform.html
diff --git a/third_party/WebKit/LayoutTests/typedcssom/inlinestyle/transform.html b/third_party/WebKit/LayoutTests/typedcssom/inlinestyle/transform.html
index 58d05b488eb78f89188c960125c47016e2d7041d..e9bcd92182a4d72593bbadcd32baaa025b824a3c 100644
--- a/third_party/WebKit/LayoutTests/typedcssom/inlinestyle/transform.html
+++ b/third_party/WebKit/LayoutTests/typedcssom/inlinestyle/transform.html
@@ -3,6 +3,7 @@
<script src="../../resources/testharnessreport.js"></script>
<div id="testElement"></div>
+<div id="crashTest" style="transform:translateY(50px)"></div>
<script>
@@ -22,5 +23,8 @@ test(function() {
assert_equals(testElement.styleMap.get('transform').cssText, 'rotate(30deg)');
}, "Getting transform works on a regular element.");
+test(function() {
+ crashTest.styleMap.entries();
+}, "Unhandled case doesn't crash.");
</script>
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/css/cssom/CSSTransformComponent.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698