aboutsummaryrefslogtreecommitdiffstats
path: root/tests/unit/tabs
diff options
context:
space:
mode:
authorKlaus Hartl <klaus.hartl@googlemail.com>2009-02-01 21:09:02 +0000
committerKlaus Hartl <klaus.hartl@googlemail.com>2009-02-01 21:09:02 +0000
commitc8360e619b03235e5b7fc5272f0a6722707d2312 (patch)
treecc885c2a294fe2c5cacfb1d9a873e386aaff7f9f /tests/unit/tabs
parent1866e1382f7ef89721432cb75e505356f067f99d (diff)
downloadjquery-ui-c8360e619b03235e5b7fc5272f0a6722707d2312.tar.gz
jquery-ui-c8360e619b03235e5b7fc5272f0a6722707d2312.zip
Tabs: Fixed IE bug which would mistake tabs as ajax with dynamically created HTML, fixes #4033
Diffstat (limited to 'tests/unit/tabs')
-rw-r--r--tests/unit/tabs/tabs.js11
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/unit/tabs/tabs.js b/tests/unit/tabs/tabs.js
index 1c470bf7b..1ffa08bbf 100644
--- a/tests/unit/tabs/tabs.js
+++ b/tests/unit/tabs/tabs.js
@@ -262,6 +262,17 @@ module('tabs: Tickets');
equals( $('a:eq(2)', el).data('load.tabs'), 'test.html', 'should ignore fragment identifier' );
});
+
+ test('IE expands hash to full url and misinterprets tab as ajax, #4033', function() { // http://ui.jquery.com/bugs/ticket/4033
+ expect(1);
+
+ el = $('<div><ul><li><a href="#tab">Tab</a></li></ul><div id="tab"></div></div>')
+ .appendTo('#main').tabs();
+
+ equals($('a', el).data('load.tabs'), undefined, 'should not create ajax tab');
+
+ });
+
// test('', function() {
// expect(0);