Show More
@@ -10,9 +10,10 b' casper.notebook_test(function () {' | |||||
10 | var multicontainer1_query = '.widget-area .widget-subarea div div.nav-tabs'; |
|
10 | var multicontainer1_query = '.widget-area .widget-subarea div div.nav-tabs'; | |
11 | var multicontainer1_index = this.append_cell( |
|
11 | var multicontainer1_index = this.append_cell( | |
12 | 'multicontainer = widgets.MulticontainerWidget()\n' + |
|
12 | 'multicontainer = widgets.MulticontainerWidget()\n' + | |
13 |
'page1 = widgets.StringWidget( |
|
13 | 'page1 = widgets.StringWidget()\n' + | |
14 |
'page2 = widgets.StringWidget( |
|
14 | 'page2 = widgets.StringWidget()\n' + | |
15 |
'page3 = widgets.StringWidget( |
|
15 | 'page3 = widgets.StringWidget()\n' + | |
|
16 | 'multicontainer.children = [page1, page2, page3]\n' + | |||
16 | 'display(multicontainer)\n' + |
|
17 | 'display(multicontainer)\n' + | |
17 | 'multicontainer.selected_index = 0\n' + |
|
18 | 'multicontainer.selected_index = 0\n' + | |
18 | 'print("Success")\n'); |
|
19 | 'print("Success")\n'); | |
@@ -64,9 +65,10 b' casper.notebook_test(function () {' | |||||
64 | var multicontainer2_query = '.widget-area .widget-subarea .accordion'; |
|
65 | var multicontainer2_query = '.widget-area .widget-subarea .accordion'; | |
65 | var multicontainer2_index = this.append_cell( |
|
66 | var multicontainer2_index = this.append_cell( | |
66 | 'multicontainer = widgets.MulticontainerWidget()\n' + |
|
67 | 'multicontainer = widgets.MulticontainerWidget()\n' + | |
67 |
'page1 = widgets.StringWidget( |
|
68 | 'page1 = widgets.StringWidget()\n' + | |
68 |
'page2 = widgets.StringWidget( |
|
69 | 'page2 = widgets.StringWidget()\n' + | |
69 |
'page3 = widgets.StringWidget( |
|
70 | 'page3 = widgets.StringWidget()\n' + | |
|
71 | 'multicontainer.children = [page1, page2, page3]\n' + | |||
70 | 'multicontainer.set_title(2, "good")\n' + |
|
72 | 'multicontainer.set_title(2, "good")\n' + | |
71 | 'display(multicontainer, view_name="AccordionView")\n' + |
|
73 | 'display(multicontainer, view_name="AccordionView")\n' + | |
72 | 'multicontainer.selected_index = 0\n' + |
|
74 | 'multicontainer.selected_index = 0\n' + |
@@ -8,7 +8,8 b' casper.notebook_test(function () {' | |||||
8 |
|
8 | |||
9 | var container_index = this.append_cell( |
|
9 | var container_index = this.append_cell( | |
10 | 'container = widgets.ContainerWidget()\n' + |
|
10 | 'container = widgets.ContainerWidget()\n' + | |
11 |
'button = widgets.ButtonWidget( |
|
11 | 'button = widgets.ButtonWidget()\n'+ | |
|
12 | 'container.children = [button]\n'+ | |||
12 | 'display(container)\n'+ |
|
13 | 'display(container)\n'+ | |
13 | 'container.add_class("my-test-class")\n'+ |
|
14 | 'container.add_class("my-test-class")\n'+ | |
14 | 'print("Success")\n'); |
|
15 | 'print("Success")\n'); | |
@@ -35,7 +36,7 b' casper.notebook_test(function () {' | |||||
35 | }); |
|
36 | }); | |
36 |
|
37 | |||
37 | index = this.append_cell( |
|
38 | index = this.append_cell( | |
38 |
'container.set_css(" |
|
39 | 'container.set_css("float", "right")\n'+ | |
39 | 'print("Success")\n'); |
|
40 | 'print("Success")\n'); | |
40 | this.execute_cell_then(index, function(index){ |
|
41 | this.execute_cell_then(index, function(index){ | |
41 |
|
42 | |||
@@ -43,7 +44,7 b' casper.notebook_test(function () {' | |||||
43 | 'Set container class CSS cell executed with correct output.'); |
|
44 | 'Set container class CSS cell executed with correct output.'); | |
44 |
|
45 | |||
45 | this.test.assert(this.cell_element_function(container_index, |
|
46 | this.test.assert(this.cell_element_function(container_index, | |
46 |
'.widget-area .widget-subarea .my-test-class', 'css', [' |
|
47 | '.widget-area .widget-subarea .my-test-class', 'css', ['float'])=='right', | |
47 | 'set_css works.'); |
|
48 | 'set_css works.'); | |
48 | }); |
|
49 | }); | |
49 |
|
50 |
General Comments 0
You need to be logged in to leave comments.
Login now