Source code
Revision control
Copy as Markdown
Other Tools
Test Info: Warnings
- This test gets skipped with pattern: os == 'android'
- Manifest: layout/inspector/tests/chrome/chrome.toml
<!DOCTYPE html>
<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>