blob: dbfa4f8d0808b008059ce7a8087044bc32488a74 [file] [log] [blame]
cdumez@apple.come05427e2014-10-31 23:46:20 +00001<!DOCTYPE html>
2<script src="../../resources/js-test-pre.js"></script>
3<marquee id="myMarquee"></marquee>
4
5<script>
6description("Makes sure we don't crash in the StyleBuilder if bad values are used for -webkit-marquee-increment property.");
7
8var badValues = [
9 "1px 2px", // a list.
10 "url(\"resources/border-image.png\")", // an image url.
11 "copy", // a cursor.
12];
13
14var testElement = document.getElementById("myMarquee");
15for (var i = 0; i < badValues.length; ++i) {
16 testElement.style["-webkit-marquee-increment"] = badValues[i];
17 document.defaultView.getComputedStyle(testElement)["-webkit-marquee-increment"];
18 testPassed("No crash for " + badValues[i] + " value");
19}
20</script>
21<script src="../../resources/js-test-post.js"></script>