servo/tests/wpt/css-tests/cssom-1_dev/xhtml1/ttwf-cssom-document-extension.xht

25 lines
No EOL
1.3 KiB
HTML

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"><head>
<title>CSSOM - Extensions to the Document Interface: StyleSheetList length is 0 when no sheets loaded</title>
<link href="mailto:jesse@codeforamerica.org" rel="author" title="Jesse Bounds" />
<link href="mailto:ms2ger@gmail.com" rel="reviewer" title="Ms2ger" /> <!-- 2012-06-17 -->
<link href="http://www.w3.org/TR/cssom-1/#extensions-to-the-document-interface" rel="help" />
<link href="http://www.w3.org/TR/cssom-1/#the-stylesheetlist-interface" rel="help" />
<meta content="dom" name="flags" />
<meta content="The styleSheets attribute must return a StyleSheetList sequence representing the document style sheets." name="assert" />
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
</head>
<body>
<div id="log"></div>
<script>
// Get the Document's styleSheets attribute
var styleSheets = document.styleSheets;
// Verify that the styleSheets list length is 0 because no stylesheets have been loaded
test(function() {
assert_equals(styleSheets.length, 0, "styleSheets.length is incorrect:");
})
</script>
</body></html>