Index: LayoutTests/fast/js/unscopeable.html |
diff --git a/LayoutTests/fast/js/unscopeable.html b/LayoutTests/fast/js/unscopeable.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..5ca9b2cf7b5d0dd972b51cb63268bfb1c47c585b |
--- /dev/null |
+++ b/LayoutTests/fast/js/unscopeable.html |
@@ -0,0 +1,26 @@ |
+<!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> |