diff options
author | Manolo Carrasco <manolo@apache.org> | 2010-05-12 16:15:58 +0000 |
---|---|---|
committer | Manolo Carrasco <manolo@apache.org> | 2010-05-12 16:15:58 +0000 |
commit | 5926c201d90670c77eff9988f57e619e7e8cda3c (patch) | |
tree | 4714ed12255b4668739c2400016f958969bf79c8 /gwtquery-core/src | |
parent | bb080468879ff482c7af4286e5a91b9ca0f54af2 (diff) | |
download | gwtquery-5926c201d90670c77eff9988f57e619e7e8cda3c.tar.gz gwtquery-5926c201d90670c77eff9988f57e619e7e8cda3c.zip |
added a test to demonstrate that capitalLetters in Id works as expected, Issue_17
Diffstat (limited to 'gwtquery-core/src')
-rw-r--r-- | gwtquery-core/src/test/java/com/google/gwt/query/client/GQueryCoreTest.java | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/gwtquery-core/src/test/java/com/google/gwt/query/client/GQueryCoreTest.java b/gwtquery-core/src/test/java/com/google/gwt/query/client/GQueryCoreTest.java index 03a89b86..3e5d995b 100644 --- a/gwtquery-core/src/test/java/com/google/gwt/query/client/GQueryCoreTest.java +++ b/gwtquery-core/src/test/java/com/google/gwt/query/client/GQueryCoreTest.java @@ -534,4 +534,13 @@ public class GQueryCoreTest extends GWTTestCase { assertEquals(2, $("span.target", e).size()); assertHtmlEquals(content, $(e).html()); } + + public void testCapitalLetters() { + $(e).html("<div id='testImageDisplay' class='whatEver'>Content</div>"); + assertEquals(1, $("#testImageDisplay").size()); + // Commented because IE is case insensitive + // assertEquals(0, $("#testimagedisplay").size()); + assertEquals(1, $(".whatEver").size()); + assertEquals(0, $(".whatever").size()); + } } |