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

Side by Side 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 unified diff | Download patch
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <script src="../../resources/testharness.js"></script>
3 <script src="../../resources/testharnessreport.js"></script>
4 <script>
5 test(function() {
6 assert_true("unscopableAttribute" in internals);
7 }, '"unscopableAttribute" in internals is true');
8
9 test(function() {
10 assert_true("unscopableMethod" in internals);
11 }, '"unscopableMethod" in internals is true');
12
13 test(function() {
14 assert_equals(internals.unscopableAttribute, 'unscopableAttribute');
15 }, 'internals.unscopableAttribute is "unscopableAttribute"');
16
17 test(function() {
18 assert_equals(internals.unscopableMethod(), 'unscopableMethod');
19 }, 'internals.unscopableMethod() is "unscopableMethod"');
20
21 test(function() {
22 var unscopableAttribute = 'variable';
23 with (internals) {
24 assert_equals(unscopableAttribute, 'variable');
25 }
26 }, 'unscopableAttribute is "variable"');
27
28 test(function() {
29 var unscopableMethod = 'variable';
30 with (internals) {
31 assert_equals(unscopableMethod, 'variable');
32 }
33 }, 'unscopableMethod is "variable"');
34 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698