B2G/gecko/toolkit/components/viewsource/test/browser/browser_viewsourceprefs.js
// Check that the Wrap Long Lines menu item works.
Check that the Wrap Long Lines menu item works.
Check that the Wrap Long Lines menu item works .
function test1() {
  simulateClick(wrapMenuItem);
  is(wrapMenuItem.hasAttribute("checked"), true, "Wrap menu item checked");
  is(SpecialPowers.getBoolPref("view_source.wrap_long_lines"), true, "Wrap pref set");
  checkStyle(mWindow, "white-space", "pre-wrap");
  test2();
}
function test1 ( ) { simulateClick ( wrapMenuItem ) ; is ( wrapMenuItem . hasAttribute ( "checked" ) , true , "Wrap menu item checked" ) ; is ( SpecialPowers . getBoolPref ( "view_source.wrap_long_lines" ) , true , "Wrap pref set" ) ; checkStyle ( mWindow , "white-space" , "pre-wrap" ) ; test2 ( ) ; }
Check that the Wrap Long Lines menu item works.
Check that the Wrap Long Lines menu item works .