author | mchung |
Mon, 27 Oct 2014 13:45:39 -0700 | |
changeset 27260 | 8d82d0e9556b |
parent 16038 | de84354579d3 |
permissions | -rw-r--r-- |
2 | 1 |
//this is the first line of Test7.js |
2 |
var filename; |
|
16038
de84354579d3
8009115: jtreg tests under jdk/test/javax/script should use nashorn as script engine
sundar
parents:
2
diff
changeset
|
3 |
try { |
de84354579d3
8009115: jtreg tests under jdk/test/javax/script should use nashorn as script engine
sundar
parents:
2
diff
changeset
|
4 |
load("nashorn:mozilla_compat.js"); |
de84354579d3
8009115: jtreg tests under jdk/test/javax/script should use nashorn as script engine
sundar
parents:
2
diff
changeset
|
5 |
} catch (e) { |
de84354579d3
8009115: jtreg tests under jdk/test/javax/script should use nashorn as script engine
sundar
parents:
2
diff
changeset
|
6 |
//ignored |
de84354579d3
8009115: jtreg tests under jdk/test/javax/script should use nashorn as script engine
sundar
parents:
2
diff
changeset
|
7 |
} |
2 | 8 |
importPackage(java.io); |
9 |
importPackage(java); |
|
10 |
var f = new File(filename); |
|
11 |
var r = new BufferedReader(new InputStreamReader(new FileInputStream(f))); |
|
12 |
||
16038
de84354579d3
8009115: jtreg tests under jdk/test/javax/script should use nashorn as script engine
sundar
parents:
2
diff
changeset
|
13 |
var firstLine = r.readLine(); |
2 | 14 |
print(firstLine); |