blob: 5ca9b2cf7b5d0dd972b51cb63268bfb1c47c585b [file] [log] [blame]
<!DOCTYPE html>
<html>
<head>
<script src="../../resources/js-test.js"></script>
</head>
<body>
<script>
description('Test [Unscopeable] attributes and methods.');
shouldBeTrue('"unscopeableAttribute" in internals');
shouldBeTrue('"unscopeableMethod" in internals');
shouldBe('internals.unscopeableAttribute', '"unscopeableAttribute"');
shouldBe('internals.unscopeableMethod()', '"unscopeableMethod"');
var unscopeableAttribute = 'variable';
var unscopeableMethod = 'variable';
with (internals) {
shouldBe('unscopeableAttribute', '"variable"');
shouldBe('unscopeableMethod', '"variable"');
}
</script>
</body>
</html>