Skip to content

Commit

Permalink
File combination order is not guaranteed when including a directory i…
Browse files Browse the repository at this point in the history
…n srcSet
  • Loading branch information
eriwen committed Jan 10, 2013
1 parent d5fef48 commit 1207658
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,9 @@ class JsPluginFunctionalTest extends FunctionalSpec {
!wasUpToDate(":minifyJs")

and:
file("build/all-min.js").text == 'function fn1(){console.log("1")}function fn2(){console.log("2")}function fn3(){console.log("3")};'
// NOTE: File order is not guaranteed
file("build/all-min.js").text.indexOf('function fn1(){console.log("1")}') > -1
file("build/all-min.js").text.indexOf('function fn2(){console.log("2")}') > -1
file("build/all-min.js").text.indexOf('function fn3(){console.log("3")}') > -1
}
}

0 comments on commit 1207658

Please sign in to comment.