Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authormattab <matthieu.aubry@gmail.com>2016-04-11 06:00:57 +0300
committermattab <matthieu.aubry@gmail.com>2016-04-11 06:00:57 +0300
commitd5a329b285acafbb71c498a9b0dab3511a4ee45c (patch)
treed78582bf111f314056ba5e4dbe2e129dc399674f /tests
parent92bb72883c53c77a1c7adce13dcf817127188764 (diff)
Select 10 times more rows so that resultset after grouping is more likely to contain enough records
Diffstat (limited to 'tests')
-rw-r--r--tests/lib/screenshot-testing/support/chai-extras.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/lib/screenshot-testing/support/chai-extras.js b/tests/lib/screenshot-testing/support/chai-extras.js
index 14e8c8a796..36fbed3df7 100644
--- a/tests/lib/screenshot-testing/support/chai-extras.js
+++ b/tests/lib/screenshot-testing/support/chai-extras.js
@@ -263,14 +263,14 @@ function compareContents(compareAgainst, pageSetupFn, done) {
var processed = pageRenderer.getPageContents();
- fs.write(processedFilePath, processed);
+ fs.write(testInfo.processed, processed);
- if (!fs.isFile(expectedFilePath)) {
- fail("No expected output file found at " + expectedFilePath + ".");
+ if (!fs.isFile(testInfo.expected)) {
+ fail("No expected output file found at " + testInfo.expected + ".");
return;
}
- var expected = fs.read(expectedFilePath);
+ var expected = fs.read(testInfo.expected);
if (processed == expected) {
pass();