Add unit tests for clone() methods.
Reported by John-David Dalton | June 9th, 2010 @ 01:14 PM | in Iteration 3
clone(deep) methods on Array, Element, Hash, Object, Number, Range, String, and Template need unit tests.
fuse.dom.Element#clone will also accept.
fuse(el).clone({ 'deep': true, 'data': true, 'events':
true, 'excludes': 'id' });'
excludes
can be a string or an array of
properties/attributes to exclude from cloning.
Comments and changes to this ticket
-
John-David Dalton June 9th, 2010 @ 01:28 PM
Also don't forget to try exlcudes with something like
['className']
and['class']
as it should work with both.And please test cloning input elements and check that their attribute values match;
var input = fuse('<input type="text" value="source">'); var clone = input.clone(); clone.setValue("live"); clone.getAttribute('value'); // should be `source` clone.getValue(); // should be `live`
-
John-David Dalton June 9th, 2010 @ 01:42 PM
- Assigned user cleared.
-
Mark Caudill June 9th, 2010 @ 08:43 PM
- Assigned user set to Mark Caudill
-
Joe Gornick September 18th, 2010 @ 04:11 PM
- Assigned user changed from Mark Caudill to Joe Gornick
- Milestone order changed from 0 to 0
-
John-David Dalton September 18th, 2010 @ 11:12 PM
We should test each option
deep
data
events
excludes
single attribute or array -
Joe Gornick September 29th, 2010 @ 09:31 AM
- Milestone cleared.
- Milestone order changed from 1 to 0
-
Joe Gornick September 29th, 2010 @ 09:39 AM
- Assigned user changed from Joe Gornick to Kit Goncharov
-
Kit Goncharov February 28th, 2011 @ 10:23 PM
- State changed from new to hold
- Milestone set to Iteration 2
- Milestone order changed from 7 to 0
Pushing all DOM-related tests back to the second iteration.
-
Joe Gornick March 2nd, 2011 @ 12:02 AM
- State changed from hold to new
-
Kit Goncharov March 25th, 2011 @ 07:58 PM
- Milestone changed from Iteration 2 to Iteration 3
- Milestone order changed from 2 to 0
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป
JavaScript frameworks share similar features and functionality such as DOM manipulation, event registration, and CSS selector engines. FuseJS attempts to incorporate the strengths of these frameworks into one stable, efficient, and optimized core JavaScript framework.