Changeset 7280
- Timestamp:
- 04/28/10 08:02:31 (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/WysiwygPlugin/test/unit/WysiwygPlugin/BrowserTranslatorTests.pm
r7247 r7280 59 59 60 60 61 62 61 my $editFrameLocator = "css=iframe#topic_ifr"; 63 62 my $wikitextLocator = "css=a#topic_hide"; 64 63 my $wysiwygLocator = "css=input#topic_2WYSIWYG"; 65 64 my $editTextareaLocator = "css=textarea#topic"; 65 my $editCancelButtonLocator = "css=input#cancel"; 66 66 67 67 # This must match the text in foswiki_tiny.js … … 97 97 98 98 $this->{BrowserTranslator_Init}->{$this->{browser}} = 1; 99 } 100 101 sub DESTROY 102 { 103 my $this = shift; 104 for my $browser (keys %{ $this->{BrowserTranslator_Init} }) { 105 $this->{browser} = $browser; 106 $this->{selenium} = $this->{seleniumBrowsers}->{$browser}; 107 108 $this->_select_top_frame(); 109 $this->{selenium}->click( $editCancelButtonLocator ); 110 } 111 if (keys %{ $this->{BrowserTranslator_Init} }) { 112 $this->{selenium}->pause(); # Breathe for a moment; let TMCE settle before doing anything else 113 } 114 $this->SUPER::DESTROY if $this->can('SUPER::DESTROY'); 99 115 } 100 116
Note: See TracChangeset
for help on using the changeset viewer.
