style: Add a test for the size of a Dependency.

This commit is contained in:
Emilio Cobos Álvarez 2017-07-13 04:32:13 +02:00
parent 445b8fb3e8
commit e3b5a1dcb0
No known key found for this signature in database
GPG key ID: 056B727BB9C1027C
2 changed files with 6 additions and 3 deletions

View file

@ -2,8 +2,11 @@
* 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 style::invalidation::element::invalidation_map::Dependency;
use style::properties;
size_of_test!(test_size_of_dependency, Dependency, 16);
size_of_test!(test_size_of_property_declaration, properties::PropertyDeclaration, 32);
// This is huge, but we allocate it on the stack and then never move it,