Philip Rogers
7e3f9e037d
Add pathseg.js, a polyfill for the SVGPathSeg API
...
The SVGPathSeg API is being removed from the spec [1] and is being
removed in Chromium 47 [2]. I implemented a drop-in polyfill[3] so
svg-edit users are not broken as browsers migrate away from the
path seg api.
This patch simply imports the upstream pathseg.js and updates all
dependencies. With this change all tests pass in Chrome 46 (with
the path seg api), Chrome 47 (without the path seg api), and
there are no changes to tests in Safari 9.01 or Firefox 43. I
also manually tested svg-edit while developing the polyfill and
could not find any broken features.
[1] https://lists.w3.org/Archives/Public/www-svg/2015Jun/0044.html
[2] https://groups.google.com/a/chromium.org/d/msg/blink-dev/EDC3cBg9mCU/OvElJgOWCgAJ
[3] https://github.com/progers/pathseg
2015-11-04 19:25:30 -08:00
Brett Zamir
160c7303ca
Fix QUnit.log and references to it to reflect the currently included QUnit implementation; add missing files (test1.html is still failing even after the fixes, though it was not one of the tests included with all_tests.html)
...
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@2762 eee81c28-f429-11dd-99c0-75d572ba1ddd
2014-04-07 05:33:44 +00:00
Brett Zamir
0c9308dd98
Add missing scripts to history and path tests
...
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@2761 eee81c28-f429-11dd-99c0-75d572ba1ddd
2014-04-07 04:51:46 +00:00
Brett Zamir
f18cdbbeae
Fix issue 1174 reported by psh.tnt re: XML entity escaping (within attributes); updated test as well
...
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@2696 eee81c28-f429-11dd-99c0-75d572ba1ddd
2014-02-12 10:10:56 +00:00
Brett Zamir
a682236528
Add HTML charset to tests, opera widget
...
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@2610 eee81c28-f429-11dd-99c0-75d572ba1ddd
2013-10-29 03:32:01 +00:00
Brett Zamir
1a73a58433
Minor: WS
...
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@2595 eee81c28-f429-11dd-99c0-75d572ba1ddd
2013-10-14 03:18:03 +00:00
Brett Zamir
8afeaf6295
Remove unneeded text/javascript from tests
...
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@2592 eee81c28-f429-11dd-99c0-75d572ba1ddd
2013-10-14 02:02:33 +00:00
Jeff Schiller
230479e038
Fix issue 1053: tspans now get remapped when their text parent are translated
...
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@2460 eee81c28-f429-11dd-99c0-75d572ba1ddd
2013-02-22 15:46:11 +00:00
Jeff Schiller
0d2a3ffea4
Add another unit test and update minor formatting in recalculate.js
...
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@2458 eee81c28-f429-11dd-99c0-75d572ba1ddd
2013-02-22 14:46:50 +00:00
Jeff Schiller
59130ed555
Create jquery-svg module and empty test, update build. Add a couple tiny unit tests for recalculate.js
...
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@2442 eee81c28-f429-11dd-99c0-75d572ba1ddd
2013-02-20 15:34:42 +00:00
Jeff Schiller
bbe79434d6
Add empty test file and update Makefile
...
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@2437 eee81c28-f429-11dd-99c0-75d572ba1ddd
2013-02-20 06:42:00 +00:00
Jeff Schiller
480fb64004
Unit test for text elements in coords
...
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@2420 eee81c28-f429-11dd-99c0-75d572ba1ddd
2013-02-17 21:07:42 +00:00
Jeff Schiller
405e20563d
Fix units unit test
...
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@2419 eee81c28-f429-11dd-99c0-75d572ba1ddd
2013-02-17 18:46:39 +00:00
Waldir Pimenta
3d71cdf27b
- convert svgutils_test.html from utf8 to iso-8859-1 (Western) encoding,
...
so that tools such as grep don't consider it a binary file.
- add <title> to test pages, to make html valid
- harmonize indentation: 2 spaces
- harmonize all empty html elements' closing tags
to be on the same line as the opening tag
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@2418 eee81c28-f429-11dd-99c0-75d572ba1ddd
2013-02-17 17:28:19 +00:00
Jeff Schiller
164b22d0c1
Some more unit tests for coords
...
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@2417 eee81c28-f429-11dd-99c0-75d572ba1ddd
2013-02-17 08:21:07 +00:00
Jeff Schiller
29534a7d4b
Move remapElement() to coords and add a first unit test
...
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@2416 eee81c28-f429-11dd-99c0-75d572ba1ddd
2013-02-17 04:58:04 +00:00
Bruno Heridet
f9b8aa624c
created svgedit main object, moved all namespaces handling in the same place
...
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@2411 eee81c28-f429-11dd-99c0-75d572ba1ddd
2013-02-16 15:02:26 +00:00
Bruno Heridet
4c4fff6a0d
cleaned svgedit.math.transformBox(), wrote the according test
...
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@2398 eee81c28-f429-11dd-99c0-75d572ba1ddd
2013-02-15 19:42:04 +00:00
Jeff Schiller
a779a74aa9
Add fully qualified function calls, shuffle a couple tiny functions into svgutils.js, add an empty coords.js module for later
...
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@2390 eee81c28-f429-11dd-99c0-75d572ba1ddd
2013-02-14 15:19:46 +00:00
Bruno Heridet
3bd244a88f
removed bad paste
...
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@2383 eee81c28-f429-11dd-99c0-75d572ba1ddd
2013-02-14 12:20:28 +00:00
Bruno Heridet
5e68aefef8
fixed unit[s] typo in svgedit.units.convertUnit, added the corresponding test
...
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@2382 eee81c28-f429-11dd-99c0-75d572ba1ddd
2013-02-14 12:18:13 +00:00
Jeff Schiller
936d9cc362
Fix issue 1052: Properly parse the style attribute during sanitization
...
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@2376 eee81c28-f429-11dd-99c0-75d572ba1ddd
2013-02-13 15:04:58 +00:00
Ahmad Syazwan
36e0fbd2d5
Fix issue 934. Patch by adambender.
...
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@2083 eee81c28-f429-11dd-99c0-75d572ba1ddd
2012-05-25 04:04:22 +00:00
Ahmad Syazwan
3a0cfe1ce0
Add some tests for ChangeElementCommand by adambender from issue 936
...
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@2079 eee81c28-f429-11dd-99c0-75d572ba1ddd
2012-04-03 02:59:51 +00:00
Jeff Schiller
597176e2c1
Fix Firefox unit test for realz
...
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@2077 eee81c28-f429-11dd-99c0-75d572ba1ddd
2012-03-31 18:04:10 +00:00
Jeff Schiller
7e6a6e68a1
Rollback bad revision 2075
...
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@2076 eee81c28-f429-11dd-99c0-75d572ba1ddd
2012-03-31 18:02:08 +00:00
Jeff Schiller
b0aa96bdec
Fix a test failing in Firefox by decreasing the precision expected
...
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@2075 eee81c28-f429-11dd-99c0-75d572ba1ddd
2012-03-31 17:55:01 +00:00
Jeff Schiller
5c1227997b
Reformat unit test page. Add in dependencies for test1 (but they still do not run)
...
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@2074 eee81c28-f429-11dd-99c0-75d572ba1ddd
2012-03-30 16:27:32 +00:00
Ahmad Syazwan
2d74a7ace5
Fix regression due to earlier fix of issue 937
...
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@2072 eee81c28-f429-11dd-99c0-75d572ba1ddd
2012-03-30 03:50:54 +00:00
Jeff Schiller
c7635282f4
Fix Issue 907: Allow custom menu options (Apply patch from adambender)
...
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@2055 eee81c28-f429-11dd-99c0-75d572ba1ddd
2012-02-25 02:13:18 +00:00
Jeff Schiller
52c74f266b
Move most of Path into svgedit.path
...
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@1978 eee81c28-f429-11dd-99c0-75d572ba1ddd
2011-02-04 16:06:25 +00:00
Jeff Schiller
76a2ce76d5
Add third mode of id randomization and some tests
...
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@1974 eee81c28-f429-11dd-99c0-75d572ba1ddd
2011-02-03 16:38:15 +00:00
Jeff Schiller
3455e04a10
Couple more unit tets for isValidUnit()
...
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@1968 eee81c28-f429-11dd-99c0-75d572ba1ddd
2011-02-02 17:33:40 +00:00
Jeff Schiller
422faa53c7
Unit test for svgedit.unit.isValidUnit()
...
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@1967 eee81c28-f429-11dd-99c0-75d572ba1ddd
2011-02-02 17:32:52 +00:00
Jeff Schiller
99931f7d5b
Move shortFloat() into svgedit.units. Add test file for svgedit.units.
...
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@1966 eee81c28-f429-11dd-99c0-75d572ba1ddd
2011-02-02 17:28:43 +00:00
Jeff Schiller
aeaa8b0213
Upgrade qunit to latest at github
...
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@1964 eee81c28-f429-11dd-99c0-75d572ba1ddd
2011-02-01 15:36:45 +00:00
Jeff Schiller
9c8ba2361f
Fix Issue 770: Trouncing the nonce. Restructured how random ids are produced. Updated how new documents are created.
...
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@1962 eee81c28-f429-11dd-99c0-75d572ba1ddd
2011-02-01 07:22:18 +00:00
Jeff Schiller
d85a7bc8a2
Add deleteCurrentLayer() to Drawing
...
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@1953 eee81c28-f429-11dd-99c0-75d572ba1ddd
2011-01-30 17:11:56 +00:00
Jeff Schiller
00d05776a2
Move setLayerVisibility() and setLayerOpacity() into Drawing and some tests
...
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@1943 eee81c28-f429-11dd-99c0-75d572ba1ddd
2011-01-28 07:39:30 +00:00
Jeff Schiller
4190990d69
Move getLayerVisibility() and getLayerOpacity() into Drawing and some tests
...
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@1942 eee81c28-f429-11dd-99c0-75d572ba1ddd
2011-01-28 06:45:34 +00:00
Jeff Schiller
3e9f1747ff
Add createLayer() to Drawing and tests
...
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@1941 eee81c28-f429-11dd-99c0-75d572ba1ddd
2011-01-28 04:37:41 +00:00
Jeff Schiller
ec56e8b2c3
Move setCurrentLayer() into Drawing. Rename getCurrentLayer() to getCurrentLayerName() and move into Drawing. Tests.
...
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@1937 eee81c28-f429-11dd-99c0-75d572ba1ddd
2011-01-26 03:18:59 +00:00
Jeff Schiller
493ac8ae41
Move current_layer into Drawing
...
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@1936 eee81c28-f429-11dd-99c0-75d572ba1ddd
2011-01-25 16:15:29 +00:00
Jeff Schiller
97071abd0e
Move getLayer() into Drawing with tests
...
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@1928 eee81c28-f429-11dd-99c0-75d572ba1ddd
2011-01-17 05:02:08 +00:00
Jeff Schiller
8691a37376
Add identifyLayers() to svg.draw.Drawing with tests
...
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@1927 eee81c28-f429-11dd-99c0-75d572ba1ddd
2011-01-17 04:36:54 +00:00
Jeff Schiller
6f9f943093
Move hasLayer() into svgedit.draw.Drawing
...
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@1926 eee81c28-f429-11dd-99c0-75d572ba1ddd
2011-01-16 23:18:51 +00:00
Jeff Schiller
0db154bff4
Rename document module to draw. Add getNumLayers() to draw module.
...
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@1925 eee81c28-f429-11dd-99c0-75d572ba1ddd
2011-01-16 23:07:35 +00:00
Jeff Schiller
82f5bfdc30
Actually use svgedit.document.Document in svgcanvas.js. Added Document.releaseId() to prevent mouseUp using up ids.
...
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@1912 eee81c28-f429-11dd-99c0-75d572ba1ddd
2011-01-14 18:18:29 +00:00
Jeff Schiller
28b9c0cfd7
Rename browsersupport module to browser
...
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@1910 eee81c28-f429-11dd-99c0-75d572ba1ddd
2011-01-13 07:47:21 +00:00
Jeff Schiller
e557f346e9
Add unused document JS module and test. Change svgcanvas to always increment object ids for every call to getNextId().
...
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@1908 eee81c28-f429-11dd-99c0-75d572ba1ddd
2011-01-13 06:57:26 +00:00