mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
20 lines
381 B
HTML
20 lines
381 B
HTML
|
<html>
|
||
|
<head>
|
||
|
<script type="application/javascript">
|
||
|
function doAccess() {
|
||
|
// Access the variable twice.
|
||
|
oneAccess();
|
||
|
oneAccess();
|
||
|
}
|
||
|
|
||
|
function oneAccess() {
|
||
|
try {
|
||
|
is(window.chromeObj.a, 42, "Successfully read chrome property");
|
||
|
} catch (e) { ok(false, "Threw while trying to access chrome property"); };
|
||
|
}
|
||
|
</script>
|
||
|
</head>
|
||
|
<body>
|
||
|
</body>
|
||
|
</html>
|