Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use the current parser location for CSS error #18808

Merged
merged 9 commits into from Oct 10, 2017
Next

Add size_of tests for CSS parsing error types

  • Loading branch information
SimonSapin committed Oct 10, 2017
commit fa3ce34afe1b6be3ebd674d312192e8fad0d7c25
@@ -2,6 +2,7 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */

use selectors::parser::SelectorParseError;
use style::invalidation::element::invalidation_map::Dependency;
use style::properties;

@@ -12,3 +13,9 @@ size_of_test!(test_size_of_property_declaration, properties::PropertyDeclaration
// This is huge, but we allocate it on the stack and then never move it,
// we only pass `&mut SourcePropertyDeclaration` references around.
size_of_test!(test_size_of_parsed_declaration, properties::SourcePropertyDeclaration, 576);

size_of_test!(test_size_of_selector_parse_error_with_unit, SelectorParseError<()>, 40);
size_of_test!(test_size_of_style_parse_error, ::style_traits::StyleParseError, 80);
size_of_test!(test_size_of_value_parse_error, ::style_traits::ValueParseError, 40);
size_of_test!(test_size_of_declaration_parse_error, ::style_traits::PropertyDeclarationParseError, 72);
size_of_test!(test_size_of_style_traits_parse_error, ::style_traits::ParseError, 96);
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.