##// END OF EJS Templates
only put Python major version in wheel tags...
only put Python major version in wheel tags results in 'py2-none-any' instead of 'py27-none-any'. This is supported by pip and PEP 425, but not available from bdist_wheel by default.

File last commit:

r14692:4a4748b2
r15027:1873e807
Show More
inject_js.js
23 lines | 648 B | application/javascript | JavascriptLexer
//
// Test robustness about JS injection in different place
//
// This assume malicious document arrive to the frontend.
//
casper.notebook_test(function () {
var messages = [];
this.on('remote.alert', function (msg) {
messages.push(msg);
});
this.evaluate(function () {
var cell = IPython.notebook.get_cell(0);
var json = cell.toJSON();
json.prompt_number = "<script> alert('hello from input prompts !')</script>";
cell.fromJSON(json);
});
this.then(function () {
this.test.assert(messages.length == 0, "Captured log message from script tag injection !");
});
});