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>
</executions>
</plugin>
<plugin>
<groupId>org.apache.felix</groupId>
<artifactId>maven-bundle-plugin</artifactId>
<version>2.5.3</version>
</plugin>
</plugins>
</pluginManagement>
</build>

View File

@ -99,7 +99,10 @@ public class ChromeRDPDebugger implements JavaScriptDebugger, ChromeRDPExchangeC
if (jsonMessage.has("id")) {
Response response = mapper.reader(Response.class).readValue(jsonMessage);
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());
} else {
@ -338,7 +341,6 @@ public class ChromeRDPDebugger implements JavaScriptDebugger, ChromeRDPExchangeC
logger.warn("Error setting breakpoint at {}, message id is {}",
breakpoint.getLocation(), message.getId());
}
System.err.println();
breakpoint.chromeId = null;
}
for (JavaScriptDebuggerListener listener : getListeners()) {

View File

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

View File

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

View File

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