Skip to content

Instantly share code, notes, and snippets.

@jasonLaster
Created December 4, 2020 18:57
Show Gist options
  • Select an option

  • Save jasonLaster/c4900c198248a9ed79ed19825a127210 to your computer and use it in GitHub Desktop.

Select an option

Save jasonLaster/c4900c198248a9ed79ed19825a127210 to your computer and use it in GitHub Desktop.
diff --git a/src/test/harness.js b/src/test/harness.js
index ce737046..16fff204 100644
--- a/src/test/harness.js
+++ b/src/test/harness.js
@@ -32,6 +32,10 @@ async function waitUntil(fn) {
throw new Error("waitUntil() timed out");
}
+function start() {
+ app.actions.setViewMode("non-dev");
+}
+
function finish() {
console.log("TestFinished");
localStorage.clear();
@@ -540,6 +544,7 @@ async function ensurePseudoElementRulesExpanded() {
}
const testCommands = {
+ start,
selectConsole,
selectDebugger,
selectInspector,
diff --git a/test/header.js b/test/header.js
index f749cc79..59543a75 100644
--- a/test/header.js
+++ b/test/header.js
@@ -4,7 +4,7 @@
// UI process.
function log(text) {
- dump(text + "\n");
+ // dump(text + "\n");
ChromeUtils.recordReplayLog(text);
}
diff --git a/test/scripts/stepping-01.js b/test/scripts/stepping-01.js
index 5c1eb640..ab499200 100644
--- a/test/scripts/stepping-01.js
+++ b/test/scripts/stepping-01.js
@@ -1,5 +1,6 @@
// Test basic step-over/back functionality.
-(async function() {
+(async function () {
+ Test.start();
await Test.addBreakpoint("doc_rr_basic.html", 20);
await Test.rewindToLine(20);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment