mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-21 17:25:36 +00:00
f781f02ccd
Generate normal properties with getters for things marked as NavigatorProperty, instead of defining these from a resolve hook.
46 lines
1.2 KiB
HTML
46 lines
1.2 KiB
HTML
<!DOCTYPE HTML>
|
|
<html>
|
|
<!--
|
|
https://bugzilla.mozilla.org/show_bug.cgi?id=707564
|
|
-->
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<title>Test for Bug 707564</title>
|
|
<script type="application/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
|
|
<link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/>
|
|
<script type="application/javascript">
|
|
|
|
/** Test for Bug 707564 **/
|
|
var ok = parent.ok;
|
|
var isnot = parent.isnot;
|
|
|
|
addLoadEvent(function() {
|
|
var props = Object.getOwnPropertyNames(Object.getPrototypeOf(frames[0].navigator));
|
|
isnot(props.indexOf("mozContacts"), -1,
|
|
"Should enumerate a mozContacts property on navigator");
|
|
|
|
// Now enumerate a different navigator object
|
|
var found = false;
|
|
for (var name in frames[1].navigator) {
|
|
if (name == "mozContacts") {
|
|
found = true;
|
|
}
|
|
}
|
|
ok(found, "Should enumerate a mozContacts property on navigator via for...in");
|
|
parent.SimpleTest.finish();
|
|
});
|
|
|
|
</script>
|
|
</head>
|
|
<body>
|
|
<a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=707564">Mozilla Bug 707564</a>
|
|
<p id="display"></p>
|
|
<div id="content" style="display: none">
|
|
<iframe></iframe>
|
|
<iframe></iframe>
|
|
</div>
|
|
<pre id="test">
|
|
</pre>
|
|
</body>
|
|
</html>
|