Skip to content
This repository
Browse code

fixes combo warm cache test by adding a fixture that was somehow drop…

…ped, it is unclear to me why this has been passing with phantomjs
  • Loading branch information...
commit c660990fb15f98a160e18910bc86d55657a3dc3a 1 parent 2585b16
Noah Adams noahadams authored

Showing 2 changed files with 11 additions and 4 deletions. Show diff stats Hide diff stats

  1. +5 0 tests/fixtures/push.js
  2. +6 4 tests/index.html
5 tests/fixtures/push.js
... ... @@ -0,0 +1,5 @@
  1 +if(a.length == 1) {
  2 + a.push("b");
  3 +} else {
  4 + a.push("d");
  5 +}
10 tests/index.html
@@ -63,9 +63,9 @@ <h2 id="qunit-userAgent"></h2>
63 63
64 64 <textarea id="combineScripts-1">
65 65 <script>var a = ['a']</script>
66   - <script x-src="push.js#b"></script>
  66 + <script x-src="fixtures/push.js#b"></script>
67 67 <script>a.push('c')</script>
68   - <script x-src="push.js#d"></script>
  68 + <script x-src="fixtures/push.js#d"></script>
69 69 </textarea>
70 70
71 71 <textarea id="combineScripts-2">
@@ -195,10 +195,12 @@ <h2 id="qunit-userAgent"></h2>
195 195 }
196 196 }
197 197 , $scripts = $($('#combineScripts-1').text())
198   - , $result = $scripts.combineScripts()
  198 + , $result
199 199 , html = '';
200 200
201 201 httpCache.reset(cache);
  202 + $result = $scripts.combineScripts();
  203 +
202 204 httpCache.save(function(err) {
203 205 if (err) {
204 206 return;
@@ -226,7 +228,7 @@ <h2 id="qunit-userAgent"></h2>
226 228 iframe.document.write(html);
227 229
228 230 function load() {
229   - equal(iframe.window.a.length, 4, 'a = [a, b, c , d]');
  231 + deepEqual(iframe.window.a, ['a', 'b', 'c', 'd'], 'a = [a, b, c , d]');
230 232
231 233 start();
232 234 }

0 comments on commit c660990

Please sign in to comment.
Something went wrong with that request. Please try again.