Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1)

Unified Diff: third_party/WebKit/LayoutTests/fast/js/unscopable.html

Issue 2341673004: [Binding] Replace 'Unscopeable' with 'Unscopable' (Closed)
Patch Set: . Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/LayoutTests/fast/js/unscopable.html
diff --git a/third_party/WebKit/LayoutTests/fast/js/unscopable.html b/third_party/WebKit/LayoutTests/fast/js/unscopable.html
new file mode 100644
index 0000000000000000000000000000000000000000..8c045dc8d869ea3e6a6f2855c7ef8725fd5eb948
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/js/unscopable.html
@@ -0,0 +1,34 @@
+<!DOCTYPE html>
+<script src="../../resources/testharness.js"></script>
+<script src="../../resources/testharnessreport.js"></script>
+<script>
+test(function() {
+ assert_true("unscopableAttribute" in internals);
+}, '"unscopableAttribute" in internals is true');
+
+test(function() {
+ assert_true("unscopableMethod" in internals);
+}, '"unscopableMethod" in internals is true');
+
+test(function() {
+ assert_equals(internals.unscopableAttribute, 'unscopableAttribute');
+}, 'internals.unscopableAttribute is "unscopableAttribute"');
+
+test(function() {
+ assert_equals(internals.unscopableMethod(), 'unscopableMethod');
+}, 'internals.unscopableMethod() is "unscopableMethod"');
+
+test(function() {
+ var unscopableAttribute = 'variable';
+ with (internals) {
+ assert_equals(unscopableAttribute, 'variable');
+ }
+}, 'unscopableAttribute is "variable"');
+
+test(function() {
+ var unscopableMethod = 'variable';
+ with (internals) {
+ assert_equals(unscopableMethod, 'variable');
+ }
+}, 'unscopableMethod is "variable"');
+</script>

Powered by Google App Engine
This is Rietveld 408576698