Skip to content

Commit 1b2de01

Browse files
committed
Merge pull request #5 from jdfreder/css-top-default
Fix js-tests for new default selector logic.
2 parents caf7406 + 22c7d9d commit 1b2de01

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

IPython/html/tests/widgets/widget.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ casper.notebook_test(function () {
149149
'import time\n' +
150150
'textbox = widgets.TextWidget()\n' +
151151
'display(textbox)\n' +
152-
'textbox.add_class("my-throttle-textbox")\n' +
152+
'textbox.add_class("my-throttle-textbox", selector="input")\n' +
153153
'def handle_change(name, old, new):\n' +
154154
' display(len(new))\n' +
155155
' time.sleep(0.5)\n' +

IPython/html/tests/widgets/widget_float.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ casper.notebook_test(function () {
1111
float_text.index = this.append_cell(
1212
'float_widget = widgets.FloatTextWidget()\n' +
1313
'display(float_widget)\n' +
14-
'float_widget.add_class("my-second-float-text")\n' +
14+
'float_widget.add_class("my-second-float-text", selector="input")\n' +
1515
'print(float_widget.model_id)\n');
1616
this.execute_cell_then(float_text.index, function(index){
1717
float_text.model_id = this.get_output_cell(index).text.trim();

IPython/html/tests/widgets/widget_int.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,12 @@ casper.notebook_test(function () {
66
'print("Success")');
77
this.execute_cell_then(index);
88

9-
var int_text = {}
9+
var int_text = {};
1010
int_text.query = '.widget-area .widget-subarea .widget-hbox-single .my-second-int-text';
1111
int_text.index = this.append_cell(
1212
'int_widget = widgets.IntTextWidget()\n' +
1313
'display(int_widget)\n' +
14-
'int_widget.add_class("my-second-int-text")\n' +
14+
'int_widget.add_class("my-second-int-text", selector="input")\n' +
1515
'print(int_widget.model_id)\n');
1616
this.execute_cell_then(int_text.index, function(index){
1717
int_text.model_id = this.get_output_cell(index).text.trim();
@@ -69,7 +69,7 @@ casper.notebook_test(function () {
6969
'intrange = [widgets.BoundedIntTextWidget(),\n' +
7070
' widgets.IntSliderWidget()]\n' +
7171
'[display(intrange[i]) for i in range(2)]\n' +
72-
'intrange[0].add_class("my-second-num-test-text")\n' +
72+
'intrange[0].add_class("my-second-num-test-text", selector="input")\n' +
7373
'print(intrange[0].model_id)\n');
7474
this.execute_cell_then(int_text2.index, function(index){
7575
int_text2.model_id = this.get_output_cell(index).text.trim();

0 commit comments

Comments
 (0)