Permalink
Browse files

Added test case for frangio's pull request.

  • Loading branch information...
1 parent 05a27ec commit 81dff84ddb2a30bcba7f7fd9f95b7c11b6bfb11a @zachleat committed Jan 7, 2012
Showing with 10 additions and 1 deletion.
  1. +10 −1 test/bigtextTest.js
View
11 test/bigtextTest.js
@@ -224,4 +224,13 @@ BigTextTest.prototype.testMinFontSize = function()
assertEquals('Font size should equal the minimum.', '16px', $('#test > div').css('font-size'));
assertEquals('When minimum is set, word wrap should re-enable.', 'normal', $('#test > div').css('white-space'));
-};
+};
+
+BigTextTest.prototype.testChildClassReplace = function()
+{
+ $(document.body).append('<div id="test" style="width:600px"><div class="testbigtext-line1">This is a single line.</div></div>');
+
+ this.linesTest('#test', 600);
+ assertTrue('First line should still have testbigtext-line1 class', $('#test > div').hasClass('testbigtext-line1'));
+ assertFalse('First line should not have test class', $('#test > div').hasClass('test'));
+};

0 comments on commit 81dff84

Please sign in to comment.