Command line API: cd

This test-case is intended for command line cd method.
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. cd(frames[0]) -> "Current window:", Window cdFrame.html]
    2. $("test-iframe-1") -> <div id="test-iframe-1">
    3. cd(top) -> ["Current window:", Window cd.html]
Special case to test: Focus the command line and reload the window by pressing F5 key (the command line should be still focused after reload). Now write cd(frames[0]) into it and press enter (make sure the command line doesn't lose the focus). Logged Current window should not be undefined.