From eae7fcdd97b04ad33e045fc481a63ee0062141b2 Mon Sep 17 00:00:00 2001 From: Nathan Sobo Date: Thu, 4 Oct 2012 12:19:41 -1000 Subject: [PATCH] Fix breaking due to "root-view:" prefixed events --- spec/app/root-view-spec.coffee | 8 ++++---- spec/extensions/wrap-guide-spec.coffee | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/spec/app/root-view-spec.coffee b/spec/app/root-view-spec.coffee index 72c239418..8e1c2ca81 100644 --- a/spec/app/root-view-spec.coffee +++ b/spec/app/root-view-spec.coffee @@ -542,13 +542,13 @@ describe "RootView", -> describe "font size adjustment", -> it "increases/decreases font size when increase/decrease-font-size events are triggered", -> fontSizeBefore = rootView.getFontSize() - rootView.trigger 'increase-font-size' + rootView.trigger 'root-view:increase-font-size' expect(rootView.getFontSize()).toBe fontSizeBefore + 1 - rootView.trigger 'increase-font-size' + rootView.trigger 'root-view:increase-font-size' expect(rootView.getFontSize()).toBe fontSizeBefore + 2 - rootView.trigger 'decrease-font-size' + rootView.trigger 'root-view:decrease-font-size' expect(rootView.getFontSize()).toBe fontSizeBefore + 1 - rootView.trigger 'decrease-font-size' + rootView.trigger 'root-view:decrease-font-size' expect(rootView.getFontSize()).toBe fontSizeBefore it "does not allow the font size to be less than 1", -> diff --git a/spec/extensions/wrap-guide-spec.coffee b/spec/extensions/wrap-guide-spec.coffee index 0aef8f95e..0aa024cdb 100644 --- a/spec/extensions/wrap-guide-spec.coffee +++ b/spec/extensions/wrap-guide-spec.coffee @@ -32,7 +32,7 @@ describe "WrapGuide", -> it "updates the wrap guide position", -> initial = wrapGuide.position().left expect(initial).toBeGreaterThan(0) - rootView.trigger('increase-font-size') + rootView.trigger('root-view:increase-font-size') expect(wrapGuide.position().left).toBeGreaterThan(initial) describe "overriding getGuideColumn", ->