test/langtools/jdk/jshell/ToolTabSnippetTest.java
changeset 50868 addda6247cb0
parent 50338 1d5694c1aa03
child 52938 5ff7480c9e28
--- a/test/langtools/jdk/jshell/ToolTabSnippetTest.java	Thu Jun 28 10:05:39 2018 +0200
+++ b/test/langtools/jdk/jshell/ToolTabSnippetTest.java	Thu Jun 28 10:05:43 2018 +0200
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2017, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2017, 2018, Oracle and/or its affiliates. All rights reserved.
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
  *
  * This code is free software; you can redistribute it and/or modify it
@@ -198,7 +198,9 @@
 
             //no crash: 8188072
             inputSink.write(INTERRUPT + "for (int:" + TAB);
-            waitOutput(out, PROMPT + "for \\(int:" + BELL);
+            waitOutput(out, PROMPT + "for \\(int:\n" +
+                            getMessage("jshell.console.completion.all.completions.number", "[0-9]+") +
+                            REDRAW_PROMPT + "for \\(int:");
         });
     }