From 58e84b916af557d91ef2ca9e2743fc2cff1405fd Mon Sep 17 00:00:00 2001 From: Oscar Godson Date: Sun, 15 Jul 2012 00:07:53 -0700 Subject: [PATCH] Fixed flaky getFiles test by giving it its own localStorage namespace --- spec/spec.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/spec/spec.js b/spec/spec.js index 8b1de3e..7cc8924 100644 --- a/spec/spec.js +++ b/spec/spec.js @@ -225,7 +225,11 @@ describe('EpicEditor.getFiles', function () { before(function () { localStorage.clear(); testEl = _createTestElement(); - editor = new EpicEditor({ basePath: '/epiceditor/', container: testEl }).load(); + editor = new EpicEditor({ + basePath: '/epiceditor/' + , container: testEl + , localStorageName: 'epiceditor-getFiles' + }).load(); fooFile = 'foo' + _randomNum(); barFile = 'bar' + _randomNum(); editor.importFile(fooFile, 'foo');