diff options
author | Michael Wood <michael.g.wood@intel.com> | 2015-10-09 10:32:43 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2015-10-11 08:11:30 +0100 |
commit | 2d6701f19057ca6bb8c42705ffc83b0318d69e90 (patch) | |
tree | 60d79cde4de6e61c863b167c3a42b50987e5d630 /bitbake/lib/toaster/toastergui/templates/js-unit-tests.html | |
parent | ab896df63ba058f535cb303611574f293c7c680b (diff) | |
download | poky-2d6701f19057ca6bb8c42705ffc83b0318d69e90.tar.gz |
bitbake: toaster: Update JS unit tests
Update JS unit tests.
- Expand the add remove layer check to make sure that the layer is
actually added to the project.
- Remove some unused vars
- Make sure that the layers/project ids will always exist at the point
of running the test.
- Add the missing typeahead input fields to the dom to fix the failing
typeahead test.
(Bitbake rev: 46af40b95f842aa14ef7e3f0d516aef3899d5e42)
Signed-off-by: Michael Wood <michael.g.wood@intel.com>
Signed-off-by: Elliot Smith <elliot.smith@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/toaster/toastergui/templates/js-unit-tests.html')
-rw-r--r-- | bitbake/lib/toaster/toastergui/templates/js-unit-tests.html | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/bitbake/lib/toaster/toastergui/templates/js-unit-tests.html b/bitbake/lib/toaster/toastergui/templates/js-unit-tests.html index 5b8fd84470..8d65f33cb1 100644 --- a/bitbake/lib/toaster/toastergui/templates/js-unit-tests.html +++ b/bitbake/lib/toaster/toastergui/templates/js-unit-tests.html | |||
@@ -22,9 +22,11 @@ | |||
22 | <script src="{% static 'js/table.js' %}"></script> | 22 | <script src="{% static 'js/table.js' %}"></script> |
23 | 23 | ||
24 | <script> | 24 | <script> |
25 | var tableUrl = '{% url 'projectlayers' project.pk %}'; | 25 | var ctx = { |
26 | tableUrl : '{% url 'projectlayers' project.pk %}', | ||
27 | projectId : {{project.pk}}, | ||
28 | } | ||
26 | </script> | 29 | </script> |
27 | |||
28 | <script src="{% static 'js/tests/test.js' %}"></script> | 30 | <script src="{% static 'js/tests/test.js' %}"></script> |
29 | 31 | ||
30 | <div id="qunit"></div> | 32 | <div id="qunit"></div> |
@@ -34,6 +36,12 @@ | |||
34 | <input type="text" id="projects" placeholder="projects"></input> | 36 | <input type="text" id="projects" placeholder="projects"></input> |
35 | <input type="text" id="machines" placeholder="machines"></input> | 37 | <input type="text" id="machines" placeholder="machines"></input> |
36 | 38 | ||
37 | {% endblock %} | 39 | <!-- import layer dependency input typeahead --> |
38 | 40 | <input type="text" id="layer-dependency" style="display:none"></input> | |
41 | <!-- project page input typeaheads --> | ||
42 | <input type="text" id="layer-add-input" style="display:none"></input> | ||
43 | <input type="text" id="machine-change-input" style="display:none"></input> | ||
44 | <!-- import layer dependency input typeahead on layer details edit layer --> | ||
45 | <input type="text" id="layer-dep-input" style="display:none"></input> | ||
39 | 46 | ||
47 | {% endblock %} | ||