@@ -616,5 +616,32 @@ define(function (require, exports, module) {
616616
617617 await endPreviewSession ( ) ;
618618 } , 5000 ) ;
619+
620+ it ( "should ctrl-s to save page be disabled inside live preview iframes" , async function ( ) {
621+ await awaitsForDone ( SpecRunnerUtils . openProjectFiles ( [ "simple1.html" ] ) ,
622+ "SpecRunnerUtils.openProjectFiles simple1.html" , 1000 ) ;
623+
624+ await waitsForLiveDevelopmentToOpen ( ) ;
625+ await _editFileAndVerifyLivePreview ( "simple1.html" , { line : 11 , ch : 45 } , 'hello world ' ,
626+ "testId" , "Brackets is hello world awesome!" ) ;
627+ let iFrame = testWindow . document . getElementById ( "panel-live-preview-frame" ) ;
628+ expect ( iFrame . contentDocument . savePageCtrlSDisabledByPhoenix ) . toBeTrue ( ) ;
629+
630+ await awaitsForDone ( SpecRunnerUtils . openProjectFiles ( [ "readme.md" ] ) ,
631+ "readme.md" , 1000 ) ;
632+ await awaits ( 300 ) ;
633+ iFrame = testWindow . document . getElementById ( "panel-live-preview-frame" ) ;
634+ expect ( iFrame . src . endsWith ( "readme.md" ) ) . toBeTrue ( ) ;
635+ expect ( iFrame . contentDocument . savePageCtrlSDisabledByPhoenix ) . toBeTrue ( ) ;
636+
637+ await awaitsForDone ( SpecRunnerUtils . openProjectFiles ( [ "sub/icon_chevron.png" ] ) ,
638+ "icon_chevron.png" , 1000 ) ;
639+ await awaits ( 300 ) ;
640+ iFrame = testWindow . document . getElementById ( "panel-live-preview-frame" ) ;
641+ expect ( iFrame . src . endsWith ( "sub/icon_chevron.png" ) ) . toBeTrue ( ) ;
642+ expect ( iFrame . contentDocument . savePageCtrlSDisabledByPhoenix ) . toBeTrue ( ) ;
643+
644+ await endPreviewSession ( ) ;
645+ } , 5000 ) ;
619646 } ) ;
620647} ) ;
0 commit comments