| /******************************************************************************* |
| * Copyright (c) 2009 xored software, Inc. |
| * |
| * This program and the accompanying materials are made available under the |
| * terms of the Eclipse Public License v. 2.0 which is available at |
| * http://www.eclipse.org/legal/epl-2.0. |
| * |
| * SPDX-License-Identifier: EPL-2.0 |
| * |
| * Contributors: |
| * xored software, Inc. - initial API and Implementation (Vladimir Belov) |
| *******************************************************************************/ |
| |
| package org.eclipse.dltk.javascript.internal.formatter.tests; |
| |
| import java.util.Map; |
| |
| import org.eclipse.dltk.compiler.util.Util; |
| import org.eclipse.dltk.javascript.formatter.JavaScriptFormatter; |
| import org.eclipse.dltk.javascript.formatter.JavaScriptFormatterConstants; |
| |
| public class TestJavaScriptFormatter extends JavaScriptFormatter { |
| |
| public TestJavaScriptFormatter() { |
| super(Util.LINE_SEPARATOR, JavaScriptFormatterConstants.getDefaults()); |
| } |
| |
| public TestJavaScriptFormatter(String lineDelimiter, |
| Map<String, Object> preferences) { |
| super(lineDelimiter, preferences); |
| } |
| |
| protected boolean isValidation() { |
| return false; |
| } |
| } |