summaryrefslogtreecommitdiffstats
path: root/python/mozperftest/mozperftest/tests/data/failing-samples/perftest_doc_failure_example.js
diff options
context:
space:
mode:
Diffstat (limited to 'python/mozperftest/mozperftest/tests/data/failing-samples/perftest_doc_failure_example.js')
-rw-r--r--python/mozperftest/mozperftest/tests/data/failing-samples/perftest_doc_failure_example.js40
1 files changed, 40 insertions, 0 deletions
diff --git a/python/mozperftest/mozperftest/tests/data/failing-samples/perftest_doc_failure_example.js b/python/mozperftest/mozperftest/tests/data/failing-samples/perftest_doc_failure_example.js
new file mode 100644
index 0000000000..6cc40d87db
--- /dev/null
+++ b/python/mozperftest/mozperftest/tests/data/failing-samples/perftest_doc_failure_example.js
@@ -0,0 +1,40 @@
+// This Source Code Form is subject to the terms of the Mozilla Public
+// 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/.
+/* eslint-env node */
+"use strict";
+
+var someVar;
+
+async function setUp(context) {
+ context.log.info("setUp example!");
+}
+
+async function test(context, commands) {
+ context.log.info("Test with setUp/tearDown example!");
+ await commands.measure.start("https://www.sitespeed.io/");
+ await commands.measure.start("https://www.mozilla.org/en-US/");
+}
+
+async function tearDown(context) {
+ context.log.info("tearDown example!");
+}
+
+
+module.exports = {
+ setUp,
+ tearDown,
+ test,
+ owner: "Performance Testing Team",
+ badName: "Example",
+ description: "The description of the example test.",
+ longDescription: `
+ This is a longer description of the test perhaps including information
+ about how it should be run locally or links to relevant information.
+ `,
+ usage: `
+ ./mach perftest python/mozperftest/mozperftest/tests/data/samples/perftest_example.js
+ `,
+ supportedBrowsers: ["Fenix nightly", "Geckoview_example", "Fennec", "Firefox"],
+ supportedPlatforms: ["Android", "Desktop"],
+};