##// END OF EJS Templates
Move “Using existing profile dir” from info to debug:...
Move “Using existing profile dir” from info to debug: Jessica B. Hamrick said: > It’s kind of annoying that it prints out every single time > I guess it’s not so bad when you’re just running the notebook > But for nbconvert you see it a lot

File last commit:

r18587:1e136a8b
r20725:f9738aa8
Show More
inject_js.js
23 lines | 650 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.execution_count = "<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 !");
});
});