command-line-api-expected.txt 14.6 KB
Newer Older
1 2 3 4 5 6 7 8
Checks command line API.

Running test: testKeys
{
    id : <messageId>
    result : {
        result : {
            className : Function
9
            description : function keys() { [native code] }
10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42
            objectId : <objectId>
            type : function
        }
    }
}
{
    id : <messageId>
    result : {
        result : {
            type : object
            value : [
                [0] : a
            ]
        }
    }
}
{
    id : <messageId>
    result : {
        result : {
            type : object
            value : [
                [0] : a
            ]
        }
    }
}

Running test: testInspect
[object Object]
{
    method : Runtime.inspectRequested
    params : {
43
        executionContextId : <executionContextId>
44 45 46 47 48 49 50 51 52 53 54 55 56
        hints : {
        }
        object : {
            className : Object
            description : Object
            objectId : <objectId>
            type : object
        }
    }
}
{
    method : Runtime.inspectRequested
    params : {
57
        executionContextId : <executionContextId>
58 59 60
        hints : {
        }
        object : {
61
            description : 239
62 63 64 65 66 67 68 69
            type : number
            value : 239
        }
    }
}
{
    method : Runtime.inspectRequested
    params : {
70
        executionContextId : <executionContextId>
71 72 73
        hints : {
        }
        object : {
74
            description : -0
75 76 77 78 79 80 81 82
            type : number
            unserializableValue : -0
        }
    }
}
{
    method : Runtime.inspectRequested
    params : {
83
        executionContextId : <executionContextId>
84 85 86 87 88 89 90 91 92
        hints : {
            copyToClipboard : true
        }
        object : {
            type : string
            value : hello
        }
    }
}
93 94 95 96 97 98 99 100
{
    id : <messageId>
    result : {
        result : {
            type : undefined
        }
    }
}
101 102 103
{
    method : Runtime.inspectRequested
    params : {
104
        executionContextId : <executionContextId>
105 106 107
        hints : {
        }
        object : {
108 109
            className : Object
            description : Object
110
            objectId : <objectId>
111
            type : object
112 113 114
        }
    }
}
115 116

Running test: testQueryObjects
117 118 119 120
{
    id : <messageId>
    result : {
        result : {
121
            className : Function
122
            description : function queryObjects() { [native code] }
123 124 125 126 127 128
            objectId : <objectId>
            type : function
        }
    }
}
{
129 130
    method : Runtime.inspectRequested
    params : {
131
        executionContextId : <executionContextId>
132 133 134 135 136 137
        hints : {
            queryObjects : true
        }
        object : {
            className : Promise
            description : Promise
138 139 140 141 142
            objectId : <objectId>
            type : object
        }
    }
}
143
Is Promise.prototype: true
144
{
145 146
    method : Runtime.inspectRequested
    params : {
147
        executionContextId : <executionContextId>
148 149 150 151 152 153
        hints : {
            queryObjects : true
        }
        object : {
            className : Promise
            description : Promise
154 155
            objectId : <objectId>
            type : object
156 157 158
        }
    }
}
159
Is Promise.prototype: true
160
{
161 162
    method : Runtime.inspectRequested
    params : {
163
        executionContextId : <executionContextId>
164 165 166 167 168 169
        hints : {
            queryObjects : true
        }
        object : {
            className : Object
            description : Object
170 171 172 173 174
            objectId : <objectId>
            type : object
        }
    }
}
175
Is p: true
176
{
177 178
    method : Runtime.inspectRequested
    params : {
179
        executionContextId : <executionContextId>
180 181 182 183
        hints : {
            queryObjects : true
        }
        object : {
184
            description : 1
185 186
            type : number
            value : 1
187 188 189
        }
    }
}
190 191 192 193 194 195 196 197 198 199 200 201 202 203

Running test: testEvaluationResult
{
    id : <messageId>
    result : {
        result : {
            type : undefined
        }
    }
}
{
    id : <messageId>
    result : {
        result : {
204
            description : 42
205 206 207 208 209 210 211 212 213
            type : number
            value : 42
        }
    }
}
{
    id : <messageId>
    result : {
        result : {
214
            description : 42
215 216 217 218 219 220 221 222 223
            type : number
            value : 42
        }
    }
}
{
    id : <messageId>
    result : {
        result : {
224
            description : -0
225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246
            type : number
            unserializableValue : -0
        }
    }
}
{
    id : <messageId>
    result : {
        result : {
            type : object
            value : {
            }
        }
    }
}

Running test: testDebug
{
    id : <messageId>
    result : {
        result : {
            className : Function
247
            description : function debug() { [native code] }
248 249 250 251 252 253 254 255 256 257
            objectId : <objectId>
            type : function
        }
    }
}
{
    id : <messageId>
    result : {
        result : {
            className : Function
258
            description : function undebug() { [native code] }
259 260 261 262 263 264 265 266
            objectId : <objectId>
            type : function
        }
    }
}
foo (:0:16)
(anonymous) (:0:0)
[
267
    [0] : 5:1
268
]
269
debugCommand
270 271 272
foo (:0:16)
(anonymous) (:0:0)
[
273
    [0] : 5:1
274
]
275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299
debugCommand
toUpper (:0:31)
(anonymous) (:0:0)
[
    [0] : 5:2
]
debugCommand
callSetTimeout (:0:28)
(anonymous) (:0:0)
[
    [0] : 5:3
]
debugCommand
callSetTimeout (:0:28)
(anonymous) (:0:0)
[
    [0] : 5:3
]
debugCommand
fromCharCode (:0:40)
(anonymous) (:0:0)
[
    [0] : 5:4
]
debugCommand
300 301 302 303 304 305 306

Running test: testMonitor
{
    id : <messageId>
    result : {
        result : {
            className : Function
307
            description : function monitor() { [native code] }
308 309 310 311 312 313 314 315 316 317
            objectId : <objectId>
            type : function
        }
    }
}
{
    id : <messageId>
    result : {
        result : {
            className : Function
318
            description : function unmonitor() { [native code] }
319 320 321 322 323 324 325 326 327 328
            objectId : <objectId>
            type : function
        }
    }
}
function foo called
after first call
store functions..
function foo called
after first call
329
function fromCharCode called with arguments: 1, 2, 3
330 331 332 333 334 335 336

Running test: testProfile
{
    id : <messageId>
    result : {
        result : {
            className : Function
337
            description : function profile() { [native code] }
338 339 340 341 342 343 344 345 346 347
            objectId : <objectId>
            type : function
        }
    }
}
{
    id : <messageId>
    result : {
        result : {
            className : Function
348
            description : function profileEnd() { [native code] }
349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410
            objectId : <objectId>
            type : function
        }
    }
}
{
    method : Profiler.consoleProfileStarted
    params : {
        id : 1
        location : {
            columnNumber : 1
            lineNumber : 1
            scriptId : <scriptId>
        }
        title : 42
    }
}
{
    method : Profiler.consoleProfileFinished
    params : {
        id : 1
        location : {
            columnNumber : 1
            lineNumber : 1
            scriptId : <scriptId>
        }
        profile : <profile>
        title : 42
    }
}
{
    method : Profiler.consoleProfileStarted
    params : {
        id : 2
        location : {
            columnNumber : 6
            lineNumber : 1
            scriptId : <scriptId>
        }
        title : 239
    }
}
{
    method : Profiler.consoleProfileFinished
    params : {
        id : 2
        location : {
            columnNumber : 6
            lineNumber : 1
            scriptId : <scriptId>
        }
        profile : <profile>
        title : 239
    }
}

Running test: testDir
{
    id : <messageId>
    result : {
        result : {
            className : Function
411
            description : function dir() { [native code] }
412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455
            objectId : <objectId>
            type : function
        }
    }
}
{
    method : Runtime.consoleAPICalled
    params : {
        args : [
            [0] : {
                className : Object
                description : Object
                objectId : <objectId>
                preview : {
                    description : Object
                    overflow : false
                    properties : [
                    ]
                    type : object
                }
                type : object
            }
        ]
        executionContextId : <executionContextId>
        stackTrace : {
            callFrames : [
                [0] : {
                    columnNumber : 0
                    functionName : 
                    lineNumber : 0
                    scriptId : <scriptId>
                    url : 
                }
            ]
        }
        timestamp : <timestamp>
        type : dir
    }
}
{
    method : Runtime.consoleAPICalled
    params : {
        args : [
            [0] : {
456
                description : 42
457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517
                type : number
                value : 42
            }
        ]
        executionContextId : <executionContextId>
        stackTrace : {
            callFrames : [
                [0] : {
                    columnNumber : 0
                    functionName : 
                    lineNumber : 0
                    scriptId : <scriptId>
                    url : 
                }
            ]
        }
        timestamp : <timestamp>
        type : dir
    }
}
{
    method : Runtime.consoleAPICalled
    params : {
        args : [
            [0] : {
                className : Object
                description : Object
                objectId : <objectId>
                preview : {
                    description : Object
                    overflow : false
                    properties : [
                    ]
                    type : object
                }
                type : object
            }
        ]
        executionContextId : <executionContextId>
        stackTrace : {
            callFrames : [
                [0] : {
                    columnNumber : 5
                    functionName : 
                    lineNumber : 0
                    scriptId : <scriptId>
                    url : 
                }
            ]
        }
        timestamp : <timestamp>
        type : dir
    }
}

Running test: testDirXML
{
    id : <messageId>
    result : {
        result : {
            className : Function
518
            description : function dirxml() { [native code] }
519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562
            objectId : <objectId>
            type : function
        }
    }
}
{
    method : Runtime.consoleAPICalled
    params : {
        args : [
            [0] : {
                className : Object
                description : Object
                objectId : <objectId>
                preview : {
                    description : Object
                    overflow : false
                    properties : [
                    ]
                    type : object
                }
                type : object
            }
        ]
        executionContextId : <executionContextId>
        stackTrace : {
            callFrames : [
                [0] : {
                    columnNumber : 0
                    functionName : 
                    lineNumber : 0
                    scriptId : <scriptId>
                    url : 
                }
            ]
        }
        timestamp : <timestamp>
        type : dirxml
    }
}
{
    method : Runtime.consoleAPICalled
    params : {
        args : [
            [0] : {
563
                description : 42
564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590
                type : number
                value : 42
            }
        ]
        executionContextId : <executionContextId>
        stackTrace : {
            callFrames : [
                [0] : {
                    columnNumber : 0
                    functionName : 
                    lineNumber : 0
                    scriptId : <scriptId>
                    url : 
                }
            ]
        }
        timestamp : <timestamp>
        type : dirxml
    }
}

Running test: testTable
{
    id : <messageId>
    result : {
        result : {
            className : Function
591
            description : function table() { [native code] }
592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635
            objectId : <objectId>
            type : function
        }
    }
}
{
    method : Runtime.consoleAPICalled
    params : {
        args : [
            [0] : {
                className : Object
                description : Object
                objectId : <objectId>
                preview : {
                    description : Object
                    overflow : false
                    properties : [
                    ]
                    type : object
                }
                type : object
            }
        ]
        executionContextId : <executionContextId>
        stackTrace : {
            callFrames : [
                [0] : {
                    columnNumber : 0
                    functionName : 
                    lineNumber : 0
                    scriptId : <scriptId>
                    url : 
                }
            ]
        }
        timestamp : <timestamp>
        type : table
    }
}
{
    method : Runtime.consoleAPICalled
    params : {
        args : [
            [0] : {
636
                description : 42
637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663
                type : number
                value : 42
            }
        ]
        executionContextId : <executionContextId>
        stackTrace : {
            callFrames : [
                [0] : {
                    columnNumber : 0
                    functionName : 
                    lineNumber : 0
                    scriptId : <scriptId>
                    url : 
                }
            ]
        }
        timestamp : <timestamp>
        type : table
    }
}

Running test: testClear
{
    id : <messageId>
    result : {
        result : {
            className : Function
664
            description : function clear() { [native code] }
665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719
            objectId : <objectId>
            type : function
        }
    }
}
{
    method : Runtime.consoleAPICalled
    params : {
        args : [
            [0] : {
                type : string
                value : console.clear
            }
        ]
        executionContextId : <executionContextId>
        stackTrace : {
            callFrames : [
                [0] : {
                    columnNumber : 0
                    functionName : 
                    lineNumber : 0
                    scriptId : <scriptId>
                    url : 
                }
            ]
        }
        timestamp : <timestamp>
        type : clear
    }
}
{
    method : Runtime.consoleAPICalled
    params : {
        args : [
            [0] : {
                type : string
                value : console.clear
            }
        ]
        executionContextId : <executionContextId>
        stackTrace : {
            callFrames : [
                [0] : {
                    columnNumber : 5
                    functionName : 
                    lineNumber : 0
                    scriptId : <scriptId>
                    url : 
                }
            ]
        }
        timestamp : <timestamp>
        type : clear
    }
}