mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-24 17:37:30 +09:00
import FIREFOX_52_6_0esr_RELEASE from mozilla-esr52 hg repo
This commit is contained in:
commit
dcd9973243
150858 changed files with 23884658 additions and 0 deletions
27
js/xpconnect/tests/mochitest/file_bug706301.html
Normal file
27
js/xpconnect/tests/mochitest/file_bug706301.html
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<script type="application/javascript">
|
||||
window.addEventListener('message', doContentTest);
|
||||
|
||||
function doContentTest() {
|
||||
|
||||
// This has always worked.
|
||||
var nodelist1 = document.getElementsByTagName('details');
|
||||
Object.getOwnPropertyDescriptor(nodelist1, 'length');
|
||||
ok(nodelist1['length'] == 0, "Content should be able to get the length of " +
|
||||
"its own nodelist after calling getOwnPropertyDescriptor.");
|
||||
|
||||
// This is bug 706301.
|
||||
var nodelist2 = document.getElementsByTagName('section');
|
||||
ok(getLengthInChrome(nodelist2), "Chrome should be able to get the length of " +
|
||||
"content nodelist after calling getOwnPropertyDescriptor.");
|
||||
|
||||
// All done.
|
||||
finishTestInChrome();
|
||||
}
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
</body>
|
||||
</html>
|
||||
Loading…
Add table
Add a link
Reference in a new issue