blob: 680f042e051f6ae7cd7a9094e316385ecfca5433 [file] [log] [blame]
Tests that command line api works.
String($0)
"[object HTMLParagraphElement]"
$3
undefined
String(keys([3,4]))
"0,1"
String(values([3,4]))
"3,4"
String($('#foo'))
"[object HTMLParagraphElement]"
String($('#foo', document.body))
"[object HTMLParagraphElement]"
String($('#foo', 'non-node'))
"[object HTMLParagraphElement]"
String($('#foo', $('#bar')))
"null"
String($$('p'))
"[object HTMLParagraphElement],[object HTMLParagraphElement]"
String($$('p', document.body))
"[object HTMLParagraphElement],[object HTMLParagraphElement]"
String($('foo'))
"null"
console.assert(keys(window).indexOf('__commandLineAPI') === -1)
undefined
queryObjects(Foo)
undefined
Array(1)