[#88,#67,state,view,app][s]: restore was not in fact working correcty for views as we need to pass the state on initialization (we were setting the state later).

* Also turn off url updating since I think that was messing with things and we were planning to do that. (For later: reintroduce this as it supports well-behaved navigation)
This commit is contained in:
Rufus Pollock
2012-04-16 20:47:47 +01:00
parent 0f0fa633a1
commit 3ef664fe77
2 changed files with 35 additions and 33 deletions

View File

@@ -26,9 +26,10 @@ test('get State', function () {
var state = explorer.state;
ok(state.get('query'));
equal(state.get('readOnly'), false);
equal(state.get('currentView'), 'grid');
equal(state.get('currentView'), null);
equal(state.get('query').size, 100);
deepEqual(state.get('view-grid').hiddenFields, []);
deepEqual(state.get('view-graph').group, null);
equal(state.get('backend'), 'memory');
ok(state.get('dataset').id !== null);
$el.remove();