gecko-dev/layout/tools
Mike Hommey 934828f009 Bug 1434765 - Properly reject invalid variables in #if{,n}def. r=froydnj,nalexander
The invalid variable test for #if{,n}def was only checking that the
first character in the variable was alphanumeric or underscore, not
the other characters.

More generally, preprocessor instructions were also cut out such that
whitespaces before and after arguments were part of the arguments.
Subtly, some legitimate strings end with what, in ISO-8859-1, is
considered as whitespaces, and because the preprocessor largely works
on byte strings (str), and because the regexps are using re.U, those
characters (e.g. 0xa0) that can legitimately appear in byte strings of
UTF-8 encoding, are treated as whitespaces. So we remove the re.U from
the instruction regexp, so that only plain ascii whitespaces only are
stripped out.

There's one place in layout/tools/reftest/manifest.jsm that was using
a broken pattern, making the test never true, which, once fixed, unveils
broken tests, so the branch that was never used is removed.

--HG--
extra : rebase_source : b695dec025c55aee0e50f2a0047278fe9c849c9e
2018-02-01 10:40:59 +09:00
..
layout-debug Bug 1434318 part 2. Stop using nsIContentViewer::GetDOMDocument in C++. r=mystor 2018-01-31 15:18:09 -05:00
recording Bug 1431533: Part 5a - Auto-rewrite code to use ChromeUtils import methods. r=florian 2018-01-29 15:20:18 -08:00
reftest Bug 1434765 - Properly reject invalid variables in #if{,n}def. r=froydnj,nalexander 2018-02-01 10:40:59 +09:00
tests Bug 1405875 - Remove old regression test harness in layout/tools/tests/regression_tests.*. r=mats 2017-10-05 11:15:58 -07:00