summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--client/src/com/vaadin/client/debug/internal/ConsoleAdapter.java13
-rw-r--r--uitest/src/com/vaadin/tests/debug/DebugWindowPresent.html2
2 files changed, 11 insertions, 4 deletions
diff --git a/client/src/com/vaadin/client/debug/internal/ConsoleAdapter.java b/client/src/com/vaadin/client/debug/internal/ConsoleAdapter.java
index 13ec8a43ff..4b9e831ec5 100644
--- a/client/src/com/vaadin/client/debug/internal/ConsoleAdapter.java
+++ b/client/src/com/vaadin/client/debug/internal/ConsoleAdapter.java
@@ -114,16 +114,23 @@ public class ConsoleAdapter implements Console {
window.meta(applicationConnection, meta);
}
+ private boolean quietMode = false;
+
@Override
- public void setQuietMode(boolean quietDebugMode) {
- if (quietDebugMode) {
+ public void setQuietMode(boolean quietMode) {
+ this.quietMode = quietMode;
+ if (quietMode) {
window.close();
+ } else {
+ // NOP can't switch ATM
}
}
@Override
public void init() {
- window.init();
+ if (!quietMode) {
+ window.init();
+ }
}
static void handleError(Throwable e, Console target) {
diff --git a/uitest/src/com/vaadin/tests/debug/DebugWindowPresent.html b/uitest/src/com/vaadin/tests/debug/DebugWindowPresent.html
index fb4c266db1..ff5c731e5c 100644
--- a/uitest/src/com/vaadin/tests/debug/DebugWindowPresent.html
+++ b/uitest/src/com/vaadin/tests/debug/DebugWindowPresent.html
@@ -18,7 +18,7 @@
</tr>
<tr>
<td>assertElementPresent</td>
- <td>vaadin=runcomvaadintestsdebugDebugWindowPresent::Root/VDebugConsole[0]</td>
+ <td>vaadin=runcomvaadintestsdebugDebugWindowPresent::Root/VDebugWindow[0]</td>
<td></td>
</tr>
<tr>