v8/test/inspector/runtime/runtime-global-lexical-scope-names-expected.txt
Alexey Kozyatinskiy 50f7455cd9 [inspector] added Runtime.globalLexicalScopeNames method
The method returns names for all available top-level scope variables
in giving context.

R=dgozman@chromium.org,jgruber@chromium.org

Bug: chromium:681333
Cq-Include-Trybots: master.tryserver.blink:linux_trusty_blink_rel
Change-Id: I2d0b600e1afbfef9087f53ea9c26abe1e112047c
Reviewed-on: https://chromium-review.googlesource.com/719409
Commit-Queue: Aleksey Kozyatinskiy <kozyatinskiy@chromium.org>
Reviewed-by: Yang Guo <yangguo@chromium.org>
Reviewed-by: Jakob Gruber <jgruber@chromium.org>
Reviewed-by: Dmitry Gozman <dgozman@chromium.org>
Cr-Commit-Position: refs/heads/master@{#48618}
2017-10-17 01:02:37 +00:00

65 lines
770 B
Plaintext

Test for Runtime.globalLexicalScopeVariablesNames
Running 'let a = 1'
Values:
a = 1
Running 'let b = 2'
Values:
a = 1
b = 2
Running 'let b = 3'
Values:
a = 1
b = 2
Running 'const c = 4'
Values:
a = 1
b = 2
c = 4
Running 'var d = 5'
(should not be in list of scoped variables)
Values:
a = 1
b = 2
c = 4
Running 'class Foo{}'
Values:
a = 1
b = 2
c = 4
Foo =
{
className : Function
description : class Foo{}
objectId : <objectId>
type : function
}
Adding script with scope variables
Values:
a = 1
b = 2
c = 4
Foo =
{
className : Function
description : class Foo{}
objectId : <objectId>
type : function
}
e = 1
f = 2
g = 3
Boo =
{
className : Function
description : class Boo {}
objectId : <objectId>
type : function
}