c949f19b45
Test to cover a lot of injected script source corner cases. R=dgozman@chromium.org Bug: chromium:595206 Cq-Include-Trybots: luci.chromium.try:linux_chromium_headless_rel;master.tryserver.blink:linux_trusty_blink_rel Change-Id: Ia631de58c5a92b39ec3933c56cf7e3f108b9bd9e Reviewed-on: https://chromium-review.googlesource.com/c/1292688 Commit-Queue: Aleksey Kozyatinskiy <kozyatinskiy@chromium.org> Reviewed-by: Dmitry Gozman <dgozman@chromium.org> Cr-Commit-Position: refs/heads/master@{#56863}
151 lines
4.0 KiB
Plaintext
151 lines
4.0 KiB
Plaintext
Tests Runtime.getProperties.
|
|
|
|
Running test: testObject
|
|
{
|
|
id : <messageId>
|
|
result : {
|
|
internalProperties : [
|
|
[0] : {
|
|
name : [[StableObjectId]]
|
|
value : <StablectObjectId>
|
|
}
|
|
]
|
|
result : [
|
|
[0] : {
|
|
configurable : true
|
|
enumerable : true
|
|
isOwn : true
|
|
name : a
|
|
value : {
|
|
description : 1
|
|
type : number
|
|
value : 1
|
|
}
|
|
writable : true
|
|
}
|
|
[1] : {
|
|
configurable : true
|
|
enumerable : false
|
|
isOwn : true
|
|
name : __proto__
|
|
value : {
|
|
className : Object
|
|
description : Object
|
|
objectId : <objectId>
|
|
type : object
|
|
}
|
|
writable : true
|
|
}
|
|
]
|
|
}
|
|
}
|
|
{
|
|
id : <messageId>
|
|
result : {
|
|
internalProperties : [
|
|
[0] : {
|
|
name : [[StableObjectId]]
|
|
value : <StablectObjectId>
|
|
}
|
|
]
|
|
result : [
|
|
[0] : {
|
|
configurable : false
|
|
enumerable : true
|
|
isOwn : true
|
|
name : d
|
|
value : {
|
|
description : 42
|
|
type : number
|
|
value : 42
|
|
}
|
|
writable : false
|
|
}
|
|
[1] : {
|
|
configurable : false
|
|
enumerable : false
|
|
isOwn : true
|
|
name : a
|
|
value : {
|
|
description : 42
|
|
type : number
|
|
value : 42
|
|
}
|
|
writable : false
|
|
}
|
|
[2] : {
|
|
configurable : false
|
|
enumerable : false
|
|
isOwn : true
|
|
name : b
|
|
value : {
|
|
description : 42
|
|
type : number
|
|
value : 42
|
|
}
|
|
writable : true
|
|
}
|
|
[3] : {
|
|
configurable : true
|
|
enumerable : false
|
|
isOwn : true
|
|
name : c
|
|
value : {
|
|
description : 42
|
|
type : number
|
|
value : 42
|
|
}
|
|
writable : false
|
|
}
|
|
[4] : {
|
|
configurable : false
|
|
enumerable : false
|
|
get : {
|
|
className : Function
|
|
description : () => 42
|
|
objectId : <objectId>
|
|
type : function
|
|
}
|
|
isOwn : true
|
|
name : e
|
|
set : {
|
|
className : Function
|
|
description : () => 0
|
|
objectId : <objectId>
|
|
type : function
|
|
}
|
|
}
|
|
[5] : {
|
|
configurable : false
|
|
enumerable : false
|
|
isOwn : true
|
|
name : Symbol(42)
|
|
symbol : {
|
|
description : Symbol(42)
|
|
objectId : <objectId>
|
|
type : symbol
|
|
}
|
|
value : {
|
|
description : 239
|
|
type : number
|
|
value : 239
|
|
}
|
|
writable : false
|
|
}
|
|
[6] : {
|
|
configurable : true
|
|
enumerable : false
|
|
isOwn : true
|
|
name : __proto__
|
|
value : {
|
|
className : Object
|
|
description : Object
|
|
objectId : <objectId>
|
|
type : object
|
|
}
|
|
writable : true
|
|
}
|
|
]
|
|
}
|
|
}
|