<!DOCTYPE html> | |
<html> | |
<head> | |
<title>CSSOM View - 4.2 - screen.height mutation throws exception</title> | |
<link rel="author" title="Neils Christoffersen" href="mailto:neils.christoffersen@gmail.com"> | |
<link rel="help" href="http://www.w3.org/TR/cssom-view/#the-screen-interface"> | |
<meta name="flags" content="dom"> | |
<meta name="assert" content="screen.height mutation throws exception"> | |
<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> |