Brett Zamir
f7bdf6be18
- Testing (math_test): Fix undeclared variables
...
- Testing: Move JavaScript out of HTML to own files
- Linting: ESLint; unfinished: editor/extensions/, editor/ (root); some of test
2018-05-15 23:43:28 +08:00
Brett Zamir
38d6274723
- Linting (HTML): Use double-quotes for attributes, remove redundant `type=text/css`,
...
indent/lbs, consistent non-use of HTML namespace, consistent indents, consistent charset
casing
- Linting (Markdown): Add `.remarkrc`, use proper hierarchical headings, use consistent
heading format, trailing spaces
- `composer.json`: consistent property spacing
- License: Add `.txt` extension, update copyright date, and reflect type (MIT) in file name
- Credits: Add self
- npm: Add `package.json` (version 3.0.0-alpha.1 for npm release only; just reserving name)
2018-05-13 09:58:13 +08:00
Flint O'Brien
01ad9d7fdd
Refactor canvas.convertToPath() internals to svgutils in preparation for getBBox performance improvements.
...
Two new functions in svgutils: convertToPath() and getBBoxOfElementAsPath().
Updated test/svgutils_test.html.
2016-04-22 12:24:52 -04:00
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
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
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
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
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
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
d5ae56ea8e
Add tests for MoveElementCommand, InsertElementCommand and RemoveElementCommand
...
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@1867 eee81c28-f429-11dd-99c0-75d572ba1ddd
2010-11-13 09:58:51 +00:00
Jeff Schiller
4a133d490d
Move undo/redo functionality into history.js. Started unit test file.
...
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@1864 eee81c28-f429-11dd-99c0-75d572ba1ddd
2010-11-12 19:08:29 +00:00
Jeff Schiller
dd719b48ea
Start on a math unit test file
...
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@1862 eee81c28-f429-11dd-99c0-75d572ba1ddd
2010-11-09 05:29:41 +00:00
Jeff Schiller
45e8914e9f
Add HTML5 DOCTYPE and CSS MIME type to tests
...
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@1860 eee81c28-f429-11dd-99c0-75d572ba1ddd
2010-11-08 19:04:43 +00:00
Jeff Schiller
3a76f5e4d6
Correct mime type on svgutils_test.html. Add test for svgedit.utilities.bboxToObj()
...
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@1859 eee81c28-f429-11dd-99c0-75d572ba1ddd
2010-11-08 18:10:06 +00:00
Jeff Schiller
711346f109
Start on a svgutils unit test file
...
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@1856 eee81c28-f429-11dd-99c0-75d572ba1ddd
2010-11-08 08:42:46 +00:00