B2G/gecko/toolkit/components/viewsource/test/browser/browser_viewsourceprefs.js
// Check that the Syntax Highlighting menu item works.
Check that the Syntax Highlighting menu item works.
Check that the Syntax Highlighting menu item works .
function test3() {
  mWindow.gBrowser.addEventListener("pageshow", function test3Handler() {
    mWindow.gBrowser.removeEventListener("pageshow", test3Handler, false);
    is(syntaxMenuItem.hasAttribute("checked"), false, "Syntax menu item unchecked");
    is(SpecialPowers.getBoolPref("view_source.syntax_highlight"), false, "Syntax highlighting pref set");
    checkHighlight(mWindow, false);
    test4();
  }, false);
  simulateClick(syntaxMenuItem);
}
function test3 ( ) { mWindow . gBrowser . addEventListener ( "pageshow" , function test3Handler ( ) { mWindow . gBrowser . removeEventListener ( "pageshow" , test3Handler , false ) ; is ( syntaxMenuItem . hasAttribute ( "checked" ) , false , "Syntax menu item unchecked" ) ; is ( SpecialPowers . getBoolPref ( "view_source.syntax_highlight" ) , false , "Syntax highlighting pref set" ) ; checkHighlight ( mWindow , false ) ; test4 ( ) ; } , false ) ; simulateClick ( syntaxMenuItem ) ; }
Check that the Syntax Highlighting menu item works.
Check that the Syntax Highlighting menu item works .