test/script/basic/jquery.js

changeset 88
8c72a2bec1be
parent 7
5a1b0714df0e
child 952
6d5471a497fb
child 962
ac62e33a99b0
equal deleted inserted replaced
87:222b9f32b674 88:8c72a2bec1be
58 } 58 }
59 59
60 var name; 60 var name;
61 61
62 try { 62 try {
63 var split = url.split('/');
64 name = split[split.length - 1];
65 var path = __DIR__ + "../external/jquery/" + name;
63 try { 66 try {
64 var split = url.split('/'); 67 load(path);
65 name = split[split.length - 1];
66 var path = __DIR__ + "../external/jquery/" + name;
67 try {
68 load(path);
69 } catch (e) {
70 checkWindow(e);
71 }
72 } catch (e) { 68 } catch (e) {
73 // try to load it from the internet, if we for some licensing reason 69 checkWindow(e);
74 // aren't allowed to ship third party code under MIT license
75 try {
76 load(url);
77 } catch (e) {
78 checkWindow(e);
79 }
80 } 70 }
81 } catch (e) { 71 } catch (e) {
82 print("Unexpected exception " + e); 72 print("Unexpected exception " + e);
83 } 73 }
84 74
85 print("done " + name); 75 print("done " + name);
86 } 76 }
87 77
88
89
90 for each (url in urls) { 78 for each (url in urls) {
91 test_jquery(url); 79 test_jquery(url);
92 } 80 }
93 81

mercurial