Fix minor issues

This commit is contained in:
konsoletyper 2014-09-11 17:12:53 +04:00
parent b0b9287659
commit 50a65c27e3
5 changed files with 10 additions and 6 deletions

View File

@ -230,6 +230,11 @@
</execution> </execution>
</executions> </executions>
</plugin> </plugin>
<plugin>
<groupId>org.apache.felix</groupId>
<artifactId>maven-bundle-plugin</artifactId>
<version>2.5.3</version>
</plugin>
</plugins> </plugins>
</pluginManagement> </pluginManagement>
</build> </build>

View File

@ -99,7 +99,10 @@ public class ChromeRDPDebugger implements JavaScriptDebugger, ChromeRDPExchangeC
if (jsonMessage.has("id")) { if (jsonMessage.has("id")) {
Response response = mapper.reader(Response.class).readValue(jsonMessage); Response response = mapper.reader(Response.class).readValue(jsonMessage);
if (response.getError() != null) { if (response.getError() != null) {
System.err.println("#" + jsonMessage.get("id") + ": " + response.getError().toString()); if (logger.isWarnEnabled()) {
logger.warn("Error message #{} received from browser: {}", jsonMessage.get("id"),
response.getError().toString());
}
} }
responseHandlers.remove(response.getId()).received(response.getResult()); responseHandlers.remove(response.getId()).received(response.getResult());
} else { } else {
@ -338,7 +341,6 @@ public class ChromeRDPDebugger implements JavaScriptDebugger, ChromeRDPExchangeC
logger.warn("Error setting breakpoint at {}, message id is {}", logger.warn("Error setting breakpoint at {}, message id is {}",
breakpoint.getLocation(), message.getId()); breakpoint.getLocation(), message.getId());
} }
System.err.println();
breakpoint.chromeId = null; breakpoint.chromeId = null;
} }
for (JavaScriptDebuggerListener listener : getListeners()) { for (JavaScriptDebuggerListener listener : getListeners()) {

View File

@ -72,7 +72,6 @@
<phase>process-test-classes</phase> <phase>process-test-classes</phase>
<configuration> <configuration>
<minifying>false</minifying> <minifying>false</minifying>
<numThreads>1</numThreads>
<properties> <properties>
<java.util.Locale.available>en, en_US, en_GB, ru, ru_RU</java.util.Locale.available> <java.util.Locale.available>en, en_US, en_GB, ru, ru_RU</java.util.Locale.available>
</properties> </properties>

View File

@ -83,7 +83,7 @@ public class SourceWriter implements Appendable, LocationProvider {
if (csq.charAt(i) == '\n') { if (csq.charAt(i) == '\n') {
appendSingleLine(csq, last, i); appendSingleLine(csq, last, i);
newLine(); newLine();
last = i; last = i + 1;
} }
} }
appendSingleLine(csq, last, end); appendSingleLine(csq, last, end);

View File

@ -79,7 +79,6 @@
<phase>process-test-classes</phase> <phase>process-test-classes</phase>
<configuration> <configuration>
<minifying>false</minifying> <minifying>false</minifying>
<numThreads>1</numThreads>
<outputDir>${project.build.directory}/javascript-test</outputDir> <outputDir>${project.build.directory}/javascript-test</outputDir>
<debugInformationGenerated>true</debugInformationGenerated> <debugInformationGenerated>true</debugInformationGenerated>
<sourceMapsGenerated>true</sourceMapsGenerated> <sourceMapsGenerated>true</sourceMapsGenerated>
@ -93,7 +92,6 @@
<phase>process-test-classes</phase> <phase>process-test-classes</phase>
<configuration> <configuration>
<minifying>false</minifying> <minifying>false</minifying>
<numThreads>1</numThreads>
<scanDependencies>true</scanDependencies> <scanDependencies>true</scanDependencies>
<outputDir>${project.build.directory}/javascript-tck</outputDir> <outputDir>${project.build.directory}/javascript-tck</outputDir>
<adapterClass>org.teavm.html4j.testing.KOTestAdapter</adapterClass> <adapterClass>org.teavm.html4j.testing.KOTestAdapter</adapterClass>