blob: a5106bb9ca92abc7eb905d66ac70f854a567e56c [file] [log] [blame]
<!DOCTYPE html>
<html>
<head>
<script src="../../../resources/js-test-pre.js"></script>
</head>
<body>
<script>
shouldBeEqualToString("(new FontFace('asdf', 'url(notreal)', { weight: '100 200' })).weight", "100 200");
shouldBeEqualToString("(new FontFace('asdf', 'url(notreal)', { weight: 'a100 200' })).status","error");
shouldBeEqualToString("(new FontFace('asdf', 'url(notreal)', { weight: '100a 200' })).status","error");
shouldBeEqualToString("(new FontFace('asdf', 'url(notreal)', { weight: '100 200' })).weight", "100 200");
shouldBeEqualToString("(new FontFace('asdf', 'url(notreal)', { weight: '100 a 200' })).status","error");
shouldBeEqualToString("(new FontFace('asdf', 'url(notreal)', { weight: '100 a200' })).status","error");
shouldBeEqualToString("(new FontFace('asdf', 'url(notreal)', { weight: '100 200a' })).status","error");
shouldBeEqualToString("(new FontFace('asdf', 'url(notreal)', { weight: '50 150' })).weight", "50 150");
shouldBeEqualToString("(new FontFace('asdf', 'url(notreal)', { weight: '2 3' })).weight", "2 3");
shouldBeEqualToString("(new FontFace('asdf', 'url(notreal)', { weight: '-3 -2' })).status","error");
shouldBeEqualToString("(new FontFace('asdf', 'url(notreal)', { weight: '5 4' })).status","error");
shouldBeEqualToString("(new FontFace('asdf', 'url(notreal)', { weight: '100 200 3' })).status","error");
shouldBeEqualToString("(new FontFace('asdf', 'url(notreal)', { weight: '100 200 a' })).status","error");
shouldBeEqualToString("(new FontFace('asdf', 'url(notreal)', { weight: '-3' })).status","error");
shouldBeEqualToString("(new FontFace('asdf', 'url(notreal)', { stretch: 'semi-expanded expanded' })).status","error");
shouldBeEqualToString("(new FontFace('asdf', 'url(notreal)', { stretch: '100% 200%' })).stretch", "100% 200%");
shouldBeEqualToString("(new FontFace('asdf', 'url(notreal)', { stretch: 'a100% 200%' })).status","error");
shouldBeEqualToString("(new FontFace('asdf', 'url(notreal)', { stretch: '100%a 200%' })).status","error");
shouldBeEqualToString("(new FontFace('asdf', 'url(notreal)', { stretch: '100% 200%' })).stretch", "100% 200%");
shouldBeEqualToString("(new FontFace('asdf', 'url(notreal)', { stretch: '100% a 200%' })).status","error");
shouldBeEqualToString("(new FontFace('asdf', 'url(notreal)', { stretch: '100% a200%' })).status","error");
shouldBeEqualToString("(new FontFace('asdf', 'url(notreal)', { stretch: '100% 200%a' })).status","error");
shouldBeEqualToString("(new FontFace('asdf', 'url(notreal)', { stretch: '50% 60%' })).stretch", "50% 60%");
shouldBeEqualToString("(new FontFace('asdf', 'url(notreal)', { stretch: '2% 3%' })).stretch", "2% 3%");
shouldBeEqualToString("(new FontFace('asdf', 'url(notreal)', { stretch: '-3% -2%' })).status","error");
shouldBeEqualToString("(new FontFace('asdf', 'url(notreal)', { stretch: '5% 4%' })).status","error");
shouldBeEqualToString("(new FontFace('asdf', 'url(notreal)', { stretch: '100% 200% 3%' })).status","error");
shouldBeEqualToString("(new FontFace('asdf', 'url(notreal)', { stretch: '100% 200% a' })).status","error");
shouldBeEqualToString("(new FontFace('asdf', 'url(notreal)', { stretch: '-3%' })).status","error");
shouldBeEqualToString("(new FontFace('asdf', 'url(notreal)', { style: 'oblique 10deg 20deg' })).style", "oblique 10deg 20deg");
shouldBeEqualToString("(new FontFace('asdf', 'url(notreal)', { style: 'oblique a10deg 20deg' })).status","error");
shouldBeEqualToString("(new FontFace('asdf', 'url(notreal)', { style: 'oblique 10dega 20deg' })).status","error");
shouldBeEqualToString("(new FontFace('asdf', 'url(notreal)', { style: 'oblique 10deg 20deg' })).style", "oblique 10deg 20deg");
shouldBeEqualToString("(new FontFace('asdf', 'url(notreal)', { style: 'oblique 10deg a 20deg' })).status","error");
shouldBeEqualToString("(new FontFace('asdf', 'url(notreal)', { style: 'oblique 10deg a20deg' })).status","error");
shouldBeEqualToString("(new FontFace('asdf', 'url(notreal)', { style: 'oblique 10deg 20dega' })).status","error");
shouldBeEqualToString("(new FontFace('asdf', 'url(notreal)', { style: 'oblique 50deg 60deg' })).style", "oblique 50deg 60deg");
shouldBeEqualToString("(new FontFace('asdf', 'url(notreal)', { style: 'oblique 2deg 3deg' })).style", "oblique 2deg 3deg");
shouldBeEqualToString("(new FontFace('asdf', 'url(notreal)', { style: 'oblique -3deg -2deg' })).style", "oblique -3deg -2deg");
shouldBeEqualToString("(new FontFace('asdf', 'url(notreal)', { style: 'oblique 5deg 4deg' })).status","error");
shouldBeEqualToString("(new FontFace('asdf', 'url(notreal)', { style: 'oblique 10deg 20deg 3deg' })).status","error");
shouldBeEqualToString("(new FontFace('asdf', 'url(notreal)', { style: 'oblique 10deg 20deg a' })).status","error");
shouldBeEqualToString("(new FontFace('asdf', 'url(notreal)', { style: 'oblique -3deg' })).style", "oblique -3deg");
</script>
<script src="../../../resources/js-test-post.js"></script>
</body>
</html>