Package com.eclipsesource.jshint.ui.internal.preferences

Examples of com.eclipsesource.jshint.ui.internal.preferences.JSHintPreferences.save()


  @After
  public void tearDown() throws CoreException {
    JSHintPreferences prefs = new JSHintPreferences();
    prefs.resetToDefaults();
    prefs.save();
  }

  @Test
  public void handleProblem_createsWarning() throws CoreException {
    MarkerHandler handler = new MarkerHandler( adapter, new Text( "test" ) );
View Full Code Here


  @Test
  public void handleProblem_createsError_ifEnabled() throws CoreException {
    JSHintPreferences prefs = new JSHintPreferences();
    prefs.setEnableErrorMarkers( true );
    prefs.save();
    MarkerHandler handler = new MarkerHandler( adapter, new Text( "test" ) );

    handler.handleProblem( mockError( 1, 2, "foo" ) );

    verify( adapter ).createError( 1, 2, 2, "foo" );
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.