##// END OF EJS Templates
Make int widget tests play nicely with slimer
Jonathan Frederic -
Show More
@@ -108,8 +108,11 b' casper.notebook_test(function () {'
108 108
109 109 // Clear the int textbox value and then set it to 1 by emulating
110 110 // keyboard presses.
111 this.cell_element_function(int_text2.index, int_text2.query, 'val', ['']);
112 this.sendKeys(int_text2.query, '1');
111 this.evaluate(function(q){
112 var textbox = IPython.notebook.element.find(q);
113 textbox.val('1');
114 textbox.trigger('keyup');
115 }, {q: int_text2.query});
113 116 });
114 117
115 118 this.wait_for_widget(int_text2);
@@ -121,8 +124,11 b' casper.notebook_test(function () {'
121 124
122 125 // Clear the int textbox value and then set it to 120 by emulating
123 126 // keyboard presses.
124 this.cell_element_function(int_text2.index, int_text2.query, 'val', ['']);
125 this.sendKeys(int_text2.query, '120');
127 this.evaluate(function(q){
128 var textbox = IPython.notebook.element.find(q);
129 textbox.val('120');
130 textbox.trigger('keyup');
131 }, {q: int_text2.query});
126 132 });
127 133
128 134 this.wait_for_widget(int_text2);
@@ -134,8 +140,11 b' casper.notebook_test(function () {'
134 140
135 141 // Clear the int textbox value and then set it to 'hello world' by
136 142 // emulating keyboard presses. 'hello world' should get filtered...
137 this.cell_element_function(int_text2.index, int_text2.query, 'val', ['']);
138 this.sendKeys(int_text2.query, 'hello world');
143 this.evaluate(function(q){
144 var textbox = IPython.notebook.element.find(q);
145 textbox.val('hello world');
146 textbox.trigger('keyup');
147 }, {q: int_text2.query});
139 148 });
140 149
141 150 this.wait_for_widget(int_text2);
General Comments 0
You need to be logged in to leave comments. Login now