Skip to content
Snippets Groups Projects

Reduce script/style assertions.

Merged catch requested to merge issue/drupal_cms-3494580:3494580-klaro-test-update into 1.x
@@ -61,12 +61,9 @@ class PerformanceTest extends PerformanceTestBase {
$this->assertSame(1, $performance_data->getCacheTagIsValidCount());
$this->assertSame(0, $performance_data->getCacheTagInvalidationCount());
$this->assertSame(2, $performance_data->getStylesheetCount());
$this->assertSame(2, $performance_data->getScriptCount());
// @todo dramatically reduce these numbers once Klaro out of the box
// performance is improved.
// @see https://www.drupal.org/project/drupal_cms/issues/3493438
$this->assertLessThan(95000, $performance_data->getStylesheetBytes());
$this->assertLessThan(240000, $performance_data->getScriptBytes());
$this->assertSame(1, $performance_data->getScriptCount());
$this->assertLessThan(75000, $performance_data->getStylesheetBytes());
$this->assertLessThan(16500, $performance_data->getScriptBytes());
}
/**
@@ -100,11 +97,8 @@ class PerformanceTest extends PerformanceTestBase {
$this->assertSame(0, $performance_data->getCacheTagInvalidationCount());
$this->assertSame(3, $performance_data->getStylesheetCount());
$this->assertSame(5, $performance_data->getScriptCount());
// @todo dramatically reduce these numbers once Klaro out of the box
// performance is improved.
// @see https://www.drupal.org/project/drupal_cms/issues/3493438
$this->assertLessThan(370000, $performance_data->getStylesheetBytes());
$this->assertLessThan(535000, $performance_data->getScriptBytes());
$this->assertLessThan(35000, $performance_data->getStylesheetBytes());
$this->assertLessThan(320000, $performance_data->getScriptBytes());
}
}
Loading