Revision 463e6830
Added by koszko almost 2 years ago
compute_scripts.awk | ||
---|---|---|
92 | 92 |
count = import_counts[filename] |
93 | 93 |
for (i = 1; i <= count; i++) { |
94 | 94 |
import_name = imports[filename,i] |
95 |
printf "const %s = window.killtheweb.%s;\n", import_name, import_name |
|
95 |
printf "const %s = window.haketilo_exports.%s;\n", |
|
96 |
import_name, import_name |
|
96 | 97 |
} |
97 | 98 |
} |
98 | 99 |
|
... | ... | |
100 | 101 |
count = export_counts[filename] |
101 | 102 |
for (i = 1; i <= count; i++) { |
102 | 103 |
export_name = exports[filename,i] |
103 |
printf "window.killtheweb.%s = %s;\n", export_name, export_name
|
|
104 |
printf "window.haketilo_exports.%s = %s;\n", export_name, export_name
|
|
104 | 105 |
} |
105 | 106 |
} |
106 | 107 |
|
Also available in: Unified diff
facilitate testing javascript functions
Haketilo's .js files can now be loaded together with their dependencies and
executed on a page opened in a selenium-driven Firefox instance.