File tree Expand file tree Collapse file tree 2 files changed +12
-1
lines changed Expand file tree Collapse file tree 2 files changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -623,7 +623,7 @@ goog.ui.media.FlashObject.prototype.isLoaded = function() {
623623 return true ;
624624 }
625625
626- if ( this . getFlashElement ( ) . PercentLoaded &&
626+ if ( 'PercentLoaded' in this . getFlashElement ( ) &&
627627 this . getFlashElement ( ) . PercentLoaded ( ) == 100 ) {
628628 return true ;
629629 }
Original file line number Diff line number Diff line change @@ -281,6 +281,17 @@ function testThrowsRequiredVersionOfFlashNotAvailable() {
281281 flash . dispose ( ) ;
282282}
283283
284+ function testIsLoadedForIE ( ) {
285+ control . $replayAll ( ) ;
286+
287+ var flash = new goog . ui . media . FlashObject ( FLASH_URL , domHelper ) ;
288+ flash . render ( ) ;
289+ assertNotThrows ( 'isLoaded() should not throw exception' , function ( ) {
290+ flash . isLoaded ( ) ;
291+ } )
292+ flash . dispose ( ) ;
293+ }
294+
284295function testIsLoadedAfterDispose ( ) {
285296 control . $replayAll ( ) ;
286297
You can’t perform that action at this time.
0 commit comments