Restore interactivity to InboxViews hosted on test page

FREEBIE
This commit is contained in:
Scott Nonnenberg 2017-05-18 11:10:25 -07:00
parent 3cfac58d78
commit 0a5960e091
2 changed files with 4 additions and 3 deletions

View file

@ -12,14 +12,14 @@ describe("Fixtures", function() {
it('renders', function(done) {
ConversationController.updateInbox().then(function() {
var view = new Whisper.InboxView({appWindow: {contentWindow: window}});
var view = new Whisper.InboxView({window: window});
view.$el.prependTo($('#render-android'));
var view = new Whisper.InboxView({appWindow: {contentWindow: window}});
var view = new Whisper.InboxView({window: window});
view.$el.removeClass('android').addClass('ios');
view.$el.prependTo($('#render-ios'));
var view = new Whisper.InboxView({appWindow: {contentWindow: window}});
var view = new Whisper.InboxView({window: window});
view.$el.removeClass('android').addClass('android-dark');
view.$el.prependTo($('#render-android-dark'));
}).then(done, done);

View file

@ -530,6 +530,7 @@
<script type="text/javascript" src="../js/panel_controller.js"></script>
<script type='text/javascript' src='../js/emoji_util.js'></script>
<script type="text/javascript" src="../js/keychange_listener.js"></script>
<script type='text/javascript' src='../js/expiring_messages.js'></script>
<script type="text/javascript" src="../js/chromium.js"></script>