1 /* |
1 /* |
2 * Copyright (c) 2012, 2013, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 2012, 2014, 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. |
72 String[][] tests = new String[FILES.length][]; |
72 String[][] tests = new String[FILES.length][]; |
73 for (int i = 0; i < FILES.length; i++) { |
73 for (int i = 0; i < FILES.length; i++) { |
74 String genBy = "Generated by javadoc"; |
74 String genBy = "Generated by javadoc"; |
75 if (timestamp) genBy += " (" + version + ") on "; |
75 if (timestamp) genBy += " (" + version + ") on "; |
76 tests[i] = new String[] { |
76 tests[i] = new String[] { |
77 OUTPUT_DIR + FS + FILES[i], genBy |
77 OUTPUT_DIR + "/" + FILES[i], genBy |
78 }; |
78 }; |
79 } |
79 } |
80 return tests; |
80 return tests; |
81 } |
81 } |
82 |
82 |
83 private static String[][] getNegatedTests(boolean timestamp) { |
83 private static String[][] getNegatedTests(boolean timestamp) { |
84 String[][] tests = new String[FILES.length][]; |
84 String[][] tests = new String[FILES.length][]; |
85 for (int i = 0; i < FILES.length; i++) { |
85 for (int i = 0; i < FILES.length; i++) { |
86 tests[i] = new String[] { |
86 tests[i] = new String[] { |
87 OUTPUT_DIR + FS + FILES[i], |
87 OUTPUT_DIR + "/" + FILES[i], |
88 (timestamp |
88 (timestamp |
89 ? "Generated by javadoc (version" |
89 ? "Generated by javadoc (version" |
90 : "Generated by javadoc ("), |
90 : "Generated by javadoc ("), |
91 "Generated by javadoc on" |
91 "Generated by javadoc on" |
92 }; |
92 }; |