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

Unified Diff: LayoutTests/fast/dom/HTMLImageElement/image-sizes-viewport-with-template-parent-and-empty-sizes.html

Issue 653023002: ASSERTION FAILED: factor > 0 (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 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: LayoutTests/fast/dom/HTMLImageElement/image-sizes-viewport-with-template-parent-and-empty-sizes.html
diff --git a/LayoutTests/fast/dom/HTMLImageElement/image-sizes-viewport-with-template-parent-and-empty-sizes.html b/LayoutTests/fast/dom/HTMLImageElement/image-sizes-viewport-with-template-parent-and-empty-sizes.html
new file mode 100644
index 0000000000000000000000000000000000000000..6ad1f63149587ec1b0895d7ad322b2cea69bcb09
--- /dev/null
+++ b/LayoutTests/fast/dom/HTMLImageElement/image-sizes-viewport-with-template-parent-and-empty-sizes.html
@@ -0,0 +1,16 @@
+<!DOCTYPE html>
+<script>
+ if (window.testRunner)
+ testRunner.dumpAsText();
+
+ function insert() {
+ var img = new Image();
+ var template = document.getElementById('template');
+ img.sizes = '';
+ template.appendChild(img);
+ }
+</script>
+<body onload="insert()">
+ <pre id="result">PASS - didn't crash.</pre>
+ <template id ="template"></template>
+</body>

Powered by Google App Engine
This is Rietveld 408576698