servo/tests/wpt/css-tests/cssom-view-1_dev/html/window-screen-height-mutation-throws.htm

23 lines
No EOL
804 B
HTML

<!DOCTYPE html>
<html><head>
<title>CSSOM View - 4.2 - screen.height mutation throws exception</title>
<link href="mailto:neils.christoffersen@gmail.com" rel="author" title="Neils Christoffersen">
<link href="http://www.w3.org/TR/cssom-view/#the-screen-interface" rel="help">
<meta content="dom" name="flags">
<meta content="screen.height mutation throws exception" name="assert">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
</head>
<body>
<div id="myDiv"></div>
<div id="log"></div>
<script>
test(function() {
assert_throws(null, function() {
window.screen.height = 0
}), "chaning window.screen.height should throw exception"
}, "mutation exception test");
</script>
</body></html>