7bbea08f66
This refactoring makes it easier to write advanced tests and gives full control over what's happening to the test code. It also forces description for every test. BUG=none Review-Url: https://codereview.chromium.org/2891213002 Cr-Commit-Position: refs/heads/master@{#45412}
178 lines
2.7 KiB
Plaintext
178 lines
2.7 KiB
Plaintext
Tests that CommandLineAPI is presented only while evaluation.
|
|
|
|
{
|
|
id : <messageId>
|
|
result : {
|
|
result : {
|
|
description : 15
|
|
type : number
|
|
value : 15
|
|
}
|
|
}
|
|
}
|
|
{
|
|
id : <messageId>
|
|
result : {
|
|
result : {
|
|
description : 0
|
|
type : number
|
|
value : 0
|
|
}
|
|
}
|
|
}
|
|
setPropertyForMethod()
|
|
{
|
|
id : <messageId>
|
|
result : {
|
|
result : {
|
|
description : 14
|
|
type : number
|
|
value : 14
|
|
}
|
|
}
|
|
}
|
|
{
|
|
id : <messageId>
|
|
result : {
|
|
result : {
|
|
description : 0
|
|
type : number
|
|
value : 0
|
|
}
|
|
}
|
|
}
|
|
{
|
|
id : <messageId>
|
|
result : {
|
|
result : {
|
|
description : 42
|
|
type : number
|
|
value : 42
|
|
}
|
|
}
|
|
}
|
|
defineValuePropertyForMethod()
|
|
{
|
|
id : <messageId>
|
|
result : {
|
|
result : {
|
|
description : 14
|
|
type : number
|
|
value : 14
|
|
}
|
|
}
|
|
}
|
|
{
|
|
id : <messageId>
|
|
result : {
|
|
result : {
|
|
description : 0
|
|
type : number
|
|
value : 0
|
|
}
|
|
}
|
|
}
|
|
{
|
|
id : <messageId>
|
|
result : {
|
|
result : {
|
|
description : 42
|
|
type : number
|
|
value : 42
|
|
}
|
|
}
|
|
}
|
|
definePropertiesForMethod()
|
|
{
|
|
id : <messageId>
|
|
result : {
|
|
result : {
|
|
description : 14
|
|
type : number
|
|
value : 14
|
|
}
|
|
}
|
|
}
|
|
{
|
|
id : <messageId>
|
|
result : {
|
|
result : {
|
|
description : 0
|
|
type : number
|
|
value : 0
|
|
}
|
|
}
|
|
}
|
|
{
|
|
id : <messageId>
|
|
result : {
|
|
result : {
|
|
description : 42
|
|
type : number
|
|
value : 42
|
|
}
|
|
}
|
|
}
|
|
defineAccessorPropertyForMethod()
|
|
{
|
|
id : <messageId>
|
|
result : {
|
|
result : {
|
|
description : 14
|
|
type : number
|
|
value : 14
|
|
}
|
|
}
|
|
}
|
|
{
|
|
id : <messageId>
|
|
result : {
|
|
result : {
|
|
description : 0
|
|
type : number
|
|
value : 0
|
|
}
|
|
}
|
|
}
|
|
{
|
|
id : <messageId>
|
|
result : {
|
|
result : {
|
|
description : 42
|
|
type : number
|
|
value : 42
|
|
}
|
|
}
|
|
}
|
|
redefineGetOwnPropertyDescriptors()
|
|
{
|
|
id : <messageId>
|
|
result : {
|
|
result : {
|
|
description : 14
|
|
type : number
|
|
value : 14
|
|
}
|
|
}
|
|
}
|
|
{
|
|
id : <messageId>
|
|
result : {
|
|
result : {
|
|
description : 0
|
|
type : number
|
|
value : 0
|
|
}
|
|
}
|
|
}
|
|
{
|
|
id : <messageId>
|
|
result : {
|
|
result : {
|
|
description : 42
|
|
type : number
|
|
value : 42
|
|
}
|
|
}
|
|
}
|