From 34f96b2ea2368b03752cd678a733bfed6ec0f97f Mon Sep 17 00:00:00 2001 From: Ben Ogle Date: Fri, 15 Aug 2014 14:12:02 -0700 Subject: [PATCH] Correctly bootstrap the benchmarks --- benchmark/benchmark-bootstrap.coffee | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/benchmark/benchmark-bootstrap.coffee b/benchmark/benchmark-bootstrap.coffee index 8d9a0ba4e..6e9d6dd1f 100644 --- a/benchmark/benchmark-bootstrap.coffee +++ b/benchmark/benchmark-bootstrap.coffee @@ -1,6 +1,6 @@ require '../src/window' Atom = require '../src/atom' -atom = new Atom() +window.atom = Atom.loadOrCreate('spec') atom.show() unless atom.getLoadSettings().exitWhenDone window.atom = atom @@ -9,5 +9,4 @@ window.atom = atom atom.openDevTools() document.title = "Benchmark Suite" -benchmarkSuite = require.resolve('./benchmark-suite') -runSpecSuite(benchmarkSuite, true) +runSpecSuite('../benchmark/benchmark-suite', atom.getLoadSettings().logFile)