2 Test the focus controller working properly when switching focused frame. Here are the cases tested:
4 -. Correct frame is focused when switching focus from one frame to another:
5 1. main frame -> iframe
6 2. iframe to main frame
7 3. iframe 1 to iframe 2
9 -. New setting focus request will be ignored if the focus controller is in the middle of switching focused frame (onblur, onfocus events):
10 1. iframe 1 onblur sets iframe 2 focus.
11 2. iframe 1 onblur sets iframe 1 focus.
12 3. iframe 1 onfocus sets iframe 2 focus.
13 4. iframe 1 onfocus sets iframe 1 focus.
16 Test: main frame to iframe.
20 Test: iframe to main frame.
24 Test: iframe1 to iframe2.
32 Test: iframe1 onblur sets iframe2 focus.
40 Test: iframe1 onblur sets iframe1 focus.
46 Test: iframe1 onfocus sets iframe2 focus.
50 Test: iframe1 onfocus sets iframe1 focus.