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
diff options
context:
space:
mode:
authorThomas Steur <thomas.steur@gmail.com>2015-02-02 23:26:59 +0300
committerThomas Steur <thomas.steur@gmail.com>2015-02-02 23:26:59 +0300
commitdee7a0c3f32d557f2d7ff338badbf38bf9a38ddb (patch)
treeeeb3e12e7c83f156977bb63fd15fb77b1de95154 /plugins/ExamplePlugin/tests
parente3faf18f9ed0368861f542e80f3dbaeb92fdeb8a (diff)
use camelCase for the screenshot names as it makes the separation between test suite and test name clearer
Diffstat (limited to 'plugins/ExamplePlugin/tests')
-rw-r--r--plugins/ExamplePlugin/tests/UI/SimpleUITest_spec.js8
-rw-r--r--plugins/ExamplePlugin/tests/UI/expected-ui-screenshots/SimpleUITest_simplePage.png (renamed from plugins/ExamplePlugin/tests/UI/expected-ui-screenshots/SimpleUITest_simple_page.png)bin15091 -> 15091 bytes
-rw-r--r--plugins/ExamplePlugin/tests/UI/expected-ui-screenshots/SimpleUITest_simplePagePartial.png (renamed from plugins/ExamplePlugin/tests/UI/expected-ui-screenshots/SimpleUITest_simple_page_partial.png)bin9571 -> 9571 bytes
3 files changed, 4 insertions, 4 deletions
diff --git a/plugins/ExamplePlugin/tests/UI/SimpleUITest_spec.js b/plugins/ExamplePlugin/tests/UI/SimpleUITest_spec.js
index f4c1580622..bd2cd2da49 100644
--- a/plugins/ExamplePlugin/tests/UI/SimpleUITest_spec.js
+++ b/plugins/ExamplePlugin/tests/UI/SimpleUITest_spec.js
@@ -22,8 +22,8 @@ describe("SimpleUITest", function () {
});
it('should load a simple page by its module and action and take a full screenshot', function (done) {
- var screenshotName = 'simple_page';
- // will take a screenshot and store it in "processed-ui-screenshots/SimpleUITest_simple_page.png"
+ var screenshotName = 'simplePage';
+ // will take a screenshot and store it in "processed-ui-screenshots/SimpleUITest_simplePage.png"
var urlToTest = "?" + generalParams + "&module=ExamplePlugin&action=index";
expect.screenshot(screenshotName).to.be.capture(function (page) {
@@ -32,8 +32,8 @@ describe("SimpleUITest", function () {
});
it('should load a simple page by its module and action and take a partial screenshot', function (done) {
- var screenshotName = 'simple_page_partial';
- // will take a screenshot and store it in "processed-ui-screenshots/SimpleUITest_simple_page_partial.png"
+ var screenshotName = 'simplePagePartial';
+ // will take a screenshot and store it in "processed-ui-screenshots/SimpleUITest_simplePagePartial.png"
var contentSelector = '#root,.expandDataTableFooterDrawer';
// take a screenshot only of the content of this CSS/jQuery selector
var urlToTest = "?" + generalParams + "&module=ExamplePlugin&action=index";
diff --git a/plugins/ExamplePlugin/tests/UI/expected-ui-screenshots/SimpleUITest_simple_page.png b/plugins/ExamplePlugin/tests/UI/expected-ui-screenshots/SimpleUITest_simplePage.png
index 7b84c80fc1..7b84c80fc1 100644
--- a/plugins/ExamplePlugin/tests/UI/expected-ui-screenshots/SimpleUITest_simple_page.png
+++ b/plugins/ExamplePlugin/tests/UI/expected-ui-screenshots/SimpleUITest_simplePage.png
Binary files differ
diff --git a/plugins/ExamplePlugin/tests/UI/expected-ui-screenshots/SimpleUITest_simple_page_partial.png b/plugins/ExamplePlugin/tests/UI/expected-ui-screenshots/SimpleUITest_simplePagePartial.png
index 386280a3b8..386280a3b8 100644
--- a/plugins/ExamplePlugin/tests/UI/expected-ui-screenshots/SimpleUITest_simple_page_partial.png
+++ b/plugins/ExamplePlugin/tests/UI/expected-ui-screenshots/SimpleUITest_simplePagePartial.png
Binary files differ