Permalink
Browse files

Add wrapper around findClosestCulture tests to hide globals

  • Loading branch information...
1 parent fef18cb commit 1da6a18146e2a9e53bc4f2d942b62dd9ee931e5d @jzaefferer jzaefferer committed Jan 31, 2011
Showing with 4 additions and 0 deletions.
  1. +4 −0 tests/findClosestCulture.js
@@ -1,3 +1,5 @@
+(function() {
+
var allCultures, de, deDE, en;
module("findClosestCulture", {
@@ -64,3 +66,5 @@ test("if q is not defined it shoud be 1", function() {
test("match language defined by q", function() {
ok( QUnit.equiv($.global.findClosestCulture("fr;q=0.4, de-DE;q=0.5"), deDE) );
});
+
+})();

0 comments on commit 1da6a18

Please sign in to comment.