diff --git a/tests/javascript/TreeDropDownField/TreeDropdownField.js b/tests/javascript/TreeDropDownField/TreeDropdownField.js index 26e1f5420..4790de32d 100644 --- a/tests/javascript/TreeDropDownField/TreeDropdownField.js +++ b/tests/javascript/TreeDropDownField/TreeDropdownField.js @@ -3,9 +3,32 @@ $.entwine.warningLevel = $.entwine.WARN_LEVEL_BESTPRACTISE; $.entwine.synchronous_mode(); + var fixtures = { + 'tree': '', + 'treesearch': '' + } + // helpers var loadTree = function(container, html) { - if(!html) html = readFixtures('fixtures/tree.html'); + if(!html) html = fixtures.tree; container.entwine('ss').loadTree(); var request = mostRecentAjaxRequest(); request.response({ @@ -50,7 +73,7 @@ request.response({ status: 200, contentType: 'text/html', - responseText: readFixtures('fixtures/tree.html') + responseText: fixtures.tree }); expect(panel).toContain('ul'); @@ -104,7 +127,7 @@ request.response({ status: 200, contentType: 'text/html', - responseText: readFixtures('fixtures/tree.search.html') + responseText: fixtures.treesearch }); expect(panel.text().match('Child node 1')).toBeTruthy(); diff --git a/tests/javascript/TreeDropDownField/fixtures/fixture.html b/tests/javascript/TreeDropDownField/fixtures/fixture.html deleted file mode 100644 index 6e3837679..000000000 --- a/tests/javascript/TreeDropDownField/fixtures/fixture.html +++ /dev/null @@ -1,3 +0,0 @@ -
- -
\ No newline at end of file diff --git a/tests/javascript/TreeDropDownField/fixtures/tree.html b/tests/javascript/TreeDropDownField/fixtures/tree.html deleted file mode 100644 index 1b7e0b51a..000000000 --- a/tests/javascript/TreeDropDownField/fixtures/tree.html +++ /dev/null @@ -1,22 +0,0 @@ - \ No newline at end of file diff --git a/tests/javascript/TreeDropDownField/fixtures/tree.search.html b/tests/javascript/TreeDropDownField/fixtures/tree.search.html deleted file mode 100644 index b2443bec4..000000000 --- a/tests/javascript/TreeDropDownField/fixtures/tree.search.html +++ /dev/null @@ -1,10 +0,0 @@ - \ No newline at end of file