--- a/nashorn/test/script/basic/jquery.js Thu Feb 14 09:14:31 2013 +0530
+++ b/nashorn/test/script/basic/jquery.js Thu Feb 14 14:16:58 2013 +0530
@@ -60,23 +60,13 @@
var name;
try {
+ var split = url.split('/');
+ name = split[split.length - 1];
+ var path = __DIR__ + "../external/jquery/" + name;
try {
- var split = url.split('/');
- name = split[split.length - 1];
- var path = __DIR__ + "../external/jquery/" + name;
- try {
- load(path);
- } catch (e) {
- checkWindow(e);
- }
+ load(path);
} catch (e) {
- // try to load it from the internet, if we for some licensing reason
- // aren't allowed to ship third party code under MIT license
- try {
- load(url);
- } catch (e) {
- checkWindow(e);
- }
+ checkWindow(e);
}
} catch (e) {
print("Unexpected exception " + e);
@@ -85,8 +75,6 @@
print("done " + name);
}
-
-
for each (url in urls) {
test_jquery(url);
}