1692 Commits

Author SHA1 Message Date
Sascha Brawer
7cf22d01ae [feaLib] Move test file include0.fea into test data subdirectory
Move the other include files into a new subdirectory inside `data`.
Mention the changed behavior of include statements in NEWS.
See https://github.com/fonttools/fonttools/pull/838.
2017-02-13 09:19:41 +01:00
Miguel Sousa
75133fc4d1 [feaLib] Make include() work like makeotf 2017-02-13 08:42:03 +01:00
Sascha Brawer
706858646a Preserve ordering of glyph alternates when round-tripping through TTX
Also fixes a bug where glyph alternates in MTI feature files were
wrongly sorted by glyph name. After this change, the output is using
the same ordering as in the input MTI feature file.

Fixes https://github.com/fonttools/fonttools/issues/833.
2017-02-11 17:08:56 +01:00
Sascha Brawer
b31ed09421 Support glyph names with dashes
The OpenType Feature File Syntax has been changed to support dashes:
https://github.com/adobe-type-tools/afdko/issues/152

Resolves https://github.com/fonttools/fonttools/issues/559.
Needed for https://github.com/googlei18n/fontmake/issues/249.
2017-02-11 15:57:17 +01:00
Cosimo Lupo
c234e3606c
[data/expect_no_hinting_TTF.ttx] adjust data using empty instructions elements 2017-01-25 15:35:16 +00:00
Cosimo Lupo
99303de5c5
[subset_test] add tests for desubroutinize and no-hinting options using Lobster subset
The following test cases are expected to fail because the current implementation of drop_hints
also strips the charstrings' advance widths:

Tests/subset/subset_test.py::SubsetTest::test_no_hinting_CFF
Tests/subset/subset_test.py::SubsetTest::test_no_hinting_desubroutinize_CFF
2017-01-25 15:31:54 +00:00
Cosimo Lupo
8df708269f
[loggingTools_test] give more time to TimerTest::test_split
timers can be capricious...

https://travis-ci.org/fonttools/fonttools/jobs/195116432#L1265-L1278
2017-01-25 10:07:09 +00:00
Cosimo Lupo
385c6d8f4f
[data/expect_keep_colr.ttx] adjust empty instructions elements in test data 2017-01-24 18:34:55 +00:00
Cosimo Lupo
e8527bcb48
[data/TestCLR-Regular.ttx] revert unnecessary changes from 337dd1d 2017-01-24 16:39:02 +00:00
Jens Kutilek
a8151d46c2 Revert "Now with correct test program file"
This reverts commit ff9c046299ae016adf19a8e327efbe3093d11c33.
2017-01-24 16:30:13 +01:00
Jens Kutilek
5d3b4eb4c0 Tell XMLWriter what newline character to use 2017-01-24 16:23:06 +01:00
Jens Kutilek
ff9c046299 Now with correct test program file 2017-01-24 16:22:45 +01:00
Jens Kutilek
2135ef25e6 Revert "No newline at end of file"
This reverts commit c043cfbb4698b7cb54fe236b9fed52e5857776ab.
2017-01-24 16:06:10 +01:00
Jens Kutilek
c043cfbb46 No newline at end of file 2017-01-24 16:01:44 +01:00
Jens Kutilek
22391398b0 Fix merge conflict 2017-01-24 15:46:40 +01:00
Cosimo Lupo
7e1f56a645
[data/expect_keep_colr.ttx] adjust expected data in SubsetTest.test_subset_clr 2017-01-24 14:35:55 +00:00
Cosimo Lupo
12b8e9284e
[data/ttProgram.ttx] add newline at the end of XML file to match b83b358 2017-01-24 14:35:55 +00:00
Jens Kutilek
828a58aacb Better fix for checking line endings, use UnicodeIO instead of BytesIO 2017-01-24 15:30:32 +01:00
Jens Kutilek
c9bdda2bc3 Ignore line endings 2017-01-24 14:05:18 +01:00
Jens Kutilek
15b2f465b9 Add test for assembly indentation 2017-01-24 13:50:24 +01:00
Jens Kutilek
337dd1d94a Fix tests for indentation changes 2017-01-24 13:20:27 +01:00
Cosimo Lupo
084ee0750a
[subset_test] invert arguments order in difflib.unified_diff; remove unused variable 2017-01-17 17:39:41 +00:00
Cosimo Lupo
98013fe526
[loggingTools_test] don't assert exact clock times
Windows timer can be imprecise:
https://ci.appveyor.com/project/fonttools/fonttools/build/1.0.419/job/vlpd9qv07384w5sl
2017-01-17 14:12:14 +00:00
Cosimo Lupo
a79bb0fa01
[Tests] convert varLib/models.py doctests into models_test.py 2017-01-17 13:39:38 +00:00
Cosimo Lupo
adaf708ae0
[Tests] convert ttProgram doctests into ttProgram_test.py 2017-01-17 13:39:37 +00:00
Cosimo Lupo
4ef3f1dd42
[Tests] convert GlyphCoordinates doctests into _g_l_y_f_test.py 2017-01-17 13:39:37 +00:00
Cosimo Lupo
a2066c9fbe
[Tests] convert _f_p_g_m doctests into _f_p_g_m_test.py 2017-01-17 13:39:37 +00:00
Cosimo Lupo
ad6e8e606c
[Tests] covert O_S_2f_2 doctests to unittest and moved to O_S_2f_2_test.py 2017-01-17 13:39:37 +00:00
Cosimo Lupo
ae6059e234
[Tests] covert woff2 doctests to unittest and moved to woff2_test.py 2017-01-17 13:39:36 +00:00
Cosimo Lupo
8fe1a874ff
[Tests] covert sfnt doctests into sfnt_test.py 2017-01-17 13:39:36 +00:00
Cosimo Lupo
cf5807bb94
[Tests] covert transform doctests into transform_test.py 2017-01-17 13:39:36 +00:00
Cosimo Lupo
99a9cb901a
[Tests] covert timeTools doctests into timeTools_test.py 2017-01-17 13:39:36 +00:00
Cosimo Lupo
34474743f5
[Tests] covert textTools doctests into textTools_test.py 2017-01-17 13:39:36 +00:00
Cosimo Lupo
7a62f04adf
[Tests] covert py23 doctests to unittest and add to py23_test.py 2017-01-17 13:39:35 +00:00
Cosimo Lupo
29141af3a9
[Tests] convert loggingTools doctests into loggingTools.py 2017-01-17 13:39:35 +00:00
Cosimo Lupo
8b0130ccb3
[Tests] convert eexec doctests into eexec_test.py 2017-01-17 13:39:35 +00:00
Cosimo Lupo
f22722ae51
[Tests] convert classifyTools doctests into bezierTools_test.py 2017-01-17 13:39:35 +00:00
Cosimo Lupo
3e23cc7bd6
[Tests] convert bezierTools doctests into bezierTools_test.py 2017-01-17 13:39:34 +00:00
Cosimo Lupo
4973060af0
[Tests] convert arrayTools doctests into arrayTools_test.py 2017-01-17 13:39:34 +00:00
Cosimo Lupo
3cdc800873
[Tests] rename all 'testdata' folders to simply 'data'
as it's now obvious what kind of data they are
2017-01-17 13:33:46 +00:00
Cosimo Lupo
e1d340cc65
[Tests] use absolute imports and add __init__.py where relevant
We can't use relative imports any more since the tests are now located outside the package.

I had to add __init__.py to Tests/feaLib/ so that pytest does not get confused by the presence
of two test files with the same basename: i.e. Tests/feaLib/builder_test.py and Tests/feaLib/builder_test.py

https://github.com/pytest-dev/pytest/issues/774
http://stackoverflow.com/questions/12582503/py-test-test-discovery-failure-when-tests-in-different-directories-are-called
2017-01-16 09:14:13 +00:00
Cosimo Lupo
78ad48eaf3
Move all *_test.py modules and test data to external Tests/ folder 2017-01-16 09:14:12 +00:00