Exemplo n.º 1
0
 public function testOnlyGettingFieldFromFocusedFrame()
 {
     $frame1 = new MockSimplePage();
     $frame1->returnsByValue('getField', 'f', array(new SelectByName('a')));
     $frame2 = new MockSimplePage();
     $frame2->expectNever('getField');
     $frameset = new SimpleFrameset(new MockSimplePage());
     $frameset->addFrame($frame1, 'A');
     $frameset->addFrame($frame2, 'B');
     $frameset->setFrameFocus('A');
     $this->assertIdentical($frameset->getField(new SelectByName('a')), 'f');
 }