зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1490115
- Add extra tests for comment-only inputs. r=glandium
--HG-- extra : rebase_source : 5ef9accd9c6d7501ff2e54a4a81b3360f0bbc040
This commit is contained in:
Родитель
46c70d27ee
Коммит
fb4191fda8
|
@ -51,9 +51,7 @@ user_pref("string", "value");
|
||||||
);
|
);
|
||||||
|
|
||||||
// Totally empty input.
|
// Totally empty input.
|
||||||
DEFAULT("",
|
DEFAULT("", "");
|
||||||
""
|
|
||||||
);
|
|
||||||
|
|
||||||
// Whitespace-only input.
|
// Whitespace-only input.
|
||||||
DEFAULT(R"(
|
DEFAULT(R"(
|
||||||
|
@ -62,6 +60,11 @@ user_pref("string", "value");
|
||||||
""
|
""
|
||||||
);
|
);
|
||||||
|
|
||||||
|
// Comment-only inputs.
|
||||||
|
DEFAULT(R"(// blah)", "");
|
||||||
|
DEFAULT(R"(# blah)", "");
|
||||||
|
DEFAULT(R"(/* blah */)", "");
|
||||||
|
|
||||||
//-------------------------------------------------------------------------
|
//-------------------------------------------------------------------------
|
||||||
// All the lexing errors. (To be pedantic, some of the integer literal
|
// All the lexing errors. (To be pedantic, some of the integer literal
|
||||||
// overflows are triggered in the parser, but put them all here so they're all
|
// overflows are triggered in the parser, but put them all here so they're all
|
||||||
|
|
Загрузка…
Ссылка в новой задаче