Command line API: cd
This test-case is intended for command line cd method.
Jan Odvarko, odvarko@gmail.com
- Open Firebug and enable the Console panel.
- Execute following expressions in the command line and check the results
'expression' -> 'result'
cd(frames[0]) -> "Current window:", Window cdFrame.html]
$("test-iframe-1") -> <div id="test-iframe-1">
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.