Merge pull request #5 from jdfreder/css-top-default

Fix js-tests for new default selector logic.
This commit is contained in:
Jason Grout 2014-07-31 09:55:12 -04:00
commit 1da978e987
3 changed files with 5 additions and 5 deletions

View File

@ -149,7 +149,7 @@ casper.notebook_test(function () {
'import time\n' +
'textbox = widgets.TextWidget()\n' +
'display(textbox)\n' +
'textbox.add_class("my-throttle-textbox")\n' +
'textbox.add_class("my-throttle-textbox", selector="input")\n' +
'def handle_change(name, old, new):\n' +
' display(len(new))\n' +
' time.sleep(0.5)\n' +

View File

@ -11,7 +11,7 @@ casper.notebook_test(function () {
float_text.index = this.append_cell(
'float_widget = widgets.FloatTextWidget()\n' +
'display(float_widget)\n' +
'float_widget.add_class("my-second-float-text")\n' +
'float_widget.add_class("my-second-float-text", selector="input")\n' +
'print(float_widget.model_id)\n');
this.execute_cell_then(float_text.index, function(index){
float_text.model_id = this.get_output_cell(index).text.trim();

View File

@ -6,12 +6,12 @@ casper.notebook_test(function () {
'print("Success")');
this.execute_cell_then(index);
var int_text = {}
var int_text = {};
int_text.query = '.widget-area .widget-subarea .widget-hbox-single .my-second-int-text';
int_text.index = this.append_cell(
'int_widget = widgets.IntTextWidget()\n' +
'display(int_widget)\n' +
'int_widget.add_class("my-second-int-text")\n' +
'int_widget.add_class("my-second-int-text", selector="input")\n' +
'print(int_widget.model_id)\n');
this.execute_cell_then(int_text.index, function(index){
int_text.model_id = this.get_output_cell(index).text.trim();
@ -69,7 +69,7 @@ casper.notebook_test(function () {
'intrange = [widgets.BoundedIntTextWidget(),\n' +
' widgets.IntSliderWidget()]\n' +
'[display(intrange[i]) for i in range(2)]\n' +
'intrange[0].add_class("my-second-num-test-text")\n' +
'intrange[0].add_class("my-second-num-test-text", selector="input")\n' +
'print(intrange[0].model_id)\n');
this.execute_cell_then(int_text2.index, function(index){
int_text2.model_id = this.get_output_cell(index).text.trim();