1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-09-29 23:40:45 +00:00
TiddlyWiki5/editions/test/tiddlers/tests
Cameron Fischer 561662782e
Fixes issue with #4504 and importvariable copying (#4518)
* Fixes issue with #4504 and importvariable copying

ImportVariables widget was using $tw.utils.extend to copy the
variables from temporary set widgets into itself. However,
$tw.utils.extend does NOT behave like Object.assign. It not only
copies all self-owned variables over, but also all variables
in that object's prototype chain. This led to some redundant copying,
and a problem where some variables might show up more than once
(like transclusion).

Fixed now. importvariables widget does its own copying, since it
can't rely on $tw.utils.extend to do the right job, and it can't
count on Object.assign to be there.

* Added test to prevent reversion of #4504

* Slight corrections to new importvariables test
2020-03-19 20:32:51 +00:00
..
test-filters.js More listops tests (#4409) 2020-01-31 14:09:06 +00:00
test-html-parser.js Upgrade to Jasmine 3 (#4226) 2019-11-12 21:42:38 +00:00
test-tags.js Add indexes to the wiki store to improve performance (#3951) 2019-05-24 21:07:37 +01:00
test-tiddler.js Add isEqual() method to tiddlers 2014-06-23 08:09:59 +01:00
test-utils.js Reverting changes to stringifyList (#4249) 2019-09-09 14:56:40 +01:00
test-widget.js Fixes issue with #4504 and importvariable copying (#4518) 2020-03-19 20:32:51 +00:00
test-wikitext-parser.js Fix broken test 2018-07-03 12:09:59 +01:00
test-wikitext.js Don't set draggable property for links 2017-03-28 13:05:00 +01:00