Skip to content
Snippets Groups Projects
Commit 5827d960 authored by Shane Tomlinson's avatar Shane Tomlinson
Browse files

Add unit tests checking for partial support on the client.

parent 04122b8a
No related branches found
No related tags found
No related merge requests found
<!-- This Source Code Form is subject to the terms of the Mozilla Public
- License, v. 2.0. If a copy of the MPL was not distributed with this
- file, You can obtain one at http://mozilla.org/MPL/2.0/. -->
<%- partial('test_template_no_input') %>
...@@ -20,12 +20,6 @@ ...@@ -20,12 +20,6 @@
} }
}); });
test("render template loaded using XHR", function() {
renderer.render("#formWrap .contents", "test_template_with_input");
ok($("#templateInput").length, "template written when loaded using XHR");
});
test("render template from memory", function() { test("render template from memory", function() {
renderer.render("#formWrap .contents", "inMemoryTemplate"); renderer.render("#formWrap .contents", "inMemoryTemplate");
...@@ -39,6 +33,14 @@ ...@@ -39,6 +33,14 @@
}); });
test("render template with partial", function() {
equal($("#focusButton").length, 0, "template not yet loaded");
renderer.render("#formWrap .contents", "test_template_with_partial");
ok($("#focusButton").length, "template loaded with partial");
});
}()); }());
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment