Command line API

This test-case is intended for Firebug command line.
Jan Odvarko, odvarko@gmail.com

  1. Open Firebug and enable the Console panel.
  2. Execute following expressions in the command line and check the results 'expression' -> 'result'
    1. $("test1") -> <div id="test1">
    2. $$(".a.c") -> [div.a, div.a]
    3. $x("html/body/span/div[1]") -> [div.test]
    4. dir(a) -> a: 10
    5. dirxml($('test3')) -> <div id="test3"><div></div></div>
    6. keys(b) -> ["a", "name"]
    7. values(b) -> [7, "a"]
    8. table(a) -> Object Properties: 10 (tabular output)
    9. $$(".a").map(function(item){return item.localName;}); -> ["div", "div", "div"]
    10. $x(\"//div[contains(@class, 'a')]\").map -> map()
    11. keys(b).map -> map()
    12. values(b).map -> map()