Permalink
Browse files

[test] Added test for the RegExp fix that demonstrates the issue.

  • Loading branch information...
1 parent ebf3ad9 commit 0d4b9012409744f1a61c2a1b7bd6108e5c051a3b @3rd-Eden 3rd-Eden committed Nov 28, 2012
Showing with 39 additions and 0 deletions.
  1. +11 −0 test/api-test.js
  2. +20 −0 test/fixtures/test-41.html
  3. +1 −0 test/fixtures/test-41.json
  4. +7 −0 test/fixtures/test-41.out
View
@@ -493,6 +493,17 @@ vows.describe('merge data into markup').addBatch({
return common.createTest('test-40', map);
}()
+ ),
+
+ '(41) Should remove the correct element': (
+
+ function() {
+ var map = Plates.Map();
+
+ map.className('ssl').remove();
+
+ return common.createTest('test-41', map);
+ }()
)
}
@@ -0,0 +1,20 @@
+<form class="ssl">
+ <fieldset>
+ <input type="text">
+ <textarea></textarea>
+ </fieldset>
+ <fieldset>
+ <input type="text">
+ <textarea></textarea>
+ </fieldset>
+ <fieldset>
+ <input type="text">
+ <textarea></textarea>
+ </fieldset>
+</form>
+<form>
+ <fieldset>
+ <input type="text">
+ <textarea></textarea>
+ </fieldset>
+</form>
@@ -0,0 +1 @@
+{}
@@ -0,0 +1,7 @@
+
+<form>
+ <fieldset>
+ <input type="text">
+ <textarea></textarea>
+ </fieldset>
+</form>

0 comments on commit 0d4b901

Please sign in to comment.