blob: 65131f0fe7c79aea39a716db3586f4d13b6b7c0d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
<!DOCTYPE html>
<title>Test for bug 1534399</title>
<script src="chrome://mochikit/content/tests/SimpleTest/SimpleTest.js"></script>
<link rel="stylesheet" type="text/css" href="chrome://mochikit/content/tests/SimpleTest/test.css"/>
<script>
function start() {
let sheet = InspectorUtils.getAllStyleSheets(document, false)[0];
ok(sheet.href.indexOf("test.css") == -1, "Shouldn't have found the author sheet");
is(sheet.disabled, false, "Sheet should initially be enabled");
sheet.disabled = true;
is(sheet.disabled, false, "Shouldn't be able to disable a UA sheet");
SimpleTest.finish();
}
SimpleTest.waitForExplicitFinish();
document.addEventListener('DOMContentLoaded', start)
</script>
|