1 /* |
1 /* |
2 * Copyright (c) 2015, 2016, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 2015, 2017, Oracle and/or its affiliates. All rights reserved. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * |
4 * |
5 * This code is free software; you can redistribute it and/or modify it |
5 * This code is free software; you can redistribute it and/or modify it |
6 * under the terms of the GNU General Public License version 2 only, as |
6 * under the terms of the GNU General Public License version 2 only, as |
7 * published by the Free Software Foundation. |
7 * published by the Free Software Foundation. |
21 * questions. |
21 * questions. |
22 */ |
22 */ |
23 |
23 |
24 /* |
24 /* |
25 * @test |
25 * @test |
26 * @bug 8144095 8164825 8169818 8153402 8165405 8177079 |
26 * @bug 8144095 8164825 8169818 8153402 8165405 8177079 8178013 |
27 * @summary Test Command Completion |
27 * @summary Test Command Completion |
28 * @modules jdk.compiler/com.sun.tools.javac.api |
28 * @modules jdk.compiler/com.sun.tools.javac.api |
29 * jdk.compiler/com.sun.tools.javac.main |
29 * jdk.compiler/com.sun.tools.javac.main |
30 * jdk.jdeps/com.sun.tools.javap |
30 * jdk.jdeps/com.sun.tools.javap |
31 * jdk.jshell/jdk.internal.jshell.tool |
31 * jdk.jshell/jdk.internal.jshell.tool |
171 "/save ", "/set ", "/types ", "/vars ", "context ", "intro ", "shortcuts "), |
171 "/save ", "/set ", "/types ", "/vars ", "context ", "intro ", "shortcuts "), |
172 a -> assertCompletion(a, "/help /s|", false, |
172 a -> assertCompletion(a, "/help /s|", false, |
173 "/save ", "/set "), |
173 "/save ", "/set "), |
174 a -> assertCompletion(a, "/help /set |", false, |
174 a -> assertCompletion(a, "/help /set |", false, |
175 "editor", "feedback", "format", "mode", "prompt", "start", "truncation"), |
175 "editor", "feedback", "format", "mode", "prompt", "start", "truncation"), |
|
176 a -> assertCompletion(a, "/help set |", false, |
|
177 "editor", "feedback", "format", "mode", "prompt", "start", "truncation"), |
176 a -> assertCompletion(a, "/help /edit |", false), |
178 a -> assertCompletion(a, "/help /edit |", false), |
177 a -> assertCompletion(a, "/help dr|", false, |
179 a -> assertCompletion(a, "/help dr|", false, |
178 "drop ") |
180 "drop ") |
179 ); |
181 ); |
180 } |
182 } |