diff options
author | Oleg Gaidarenko <markelog@gmail.com> | 2015-01-23 02:34:29 +0300 |
---|---|---|
committer | Oleg Gaidarenko <markelog@gmail.com> | 2015-02-10 23:44:01 +0300 |
commit | 0ea342a6a6dce793c1b0f14f051c2573f40f4e44 (patch) | |
tree | a2bb76431095960fb227d932c2a8487bdd7a2fd8 /test | |
parent | 45ec73f55618cd080867a98b42b9ab80409cab2e (diff) | |
download | jquery-0ea342a6a6dce793c1b0f14f051c2573f40f4e44.tar.gz jquery-0ea342a6a6dce793c1b0f14f051c2573f40f4e44.zip |
Manipulation: simplify html wrappers
Take advantage of html serialization for html wrappers - saves 26 bytes
Plus add additional test for "col" element
Closes gh-2031
Fixes gh-2002
Diffstat (limited to 'test')
-rw-r--r-- | test/unit/manipulation.js | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/test/unit/manipulation.js b/test/unit/manipulation.js index 2a240127c..70047622d 100644 --- a/test/unit/manipulation.js +++ b/test/unit/manipulation.js @@ -2452,6 +2452,18 @@ test( "Validate creation of multiple quantities of certain elements (#13818)", 4 }); }); +test( "Make sure col element is appended correctly", function() { + expect( 1 ); + + var table = jQuery( "<table cellpadding='0'><tr><td>test</td></tr></table>" ); + + jQuery( table ).appendTo( "#qunit-fixture" ); + + jQuery( "<col width='150'/>" ).prependTo( table ); + + strictEqual( table.find( "td" ).width(), 150 ); +}); + asyncTest( "Insert script with data-URI (gh-1887)", 1, function() { Globals.register( "testFoo" ); Globals.register( "testSrcFoo" ); |