/
ClyFullBrowserStateTest.class.st
74 lines (48 loc) · 1.59 KB
/
ClyFullBrowserStateTest.class.st
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
Class {
#name : #ClyFullBrowserStateTest,
#superclass : #ClyBrowserStateTestCase,
#category : #'Calypso-SystemTools-FullBrowser-Tests'
}
{ #category : #running }
ClyFullBrowserStateTest >> restoreBrowserInstance [
self snapshotState.
navigationState applyTo: browser
]
{ #category : #running }
ClyFullBrowserStateTest >> setUp [
super setUp.
browser prepareInitialState
]
{ #category : #tests }
ClyFullBrowserStateTest >> testRestoredBrowserInstanceWithMetaLevelScope [
browser metaLevelScope: #testScope.
self restoreBrowserInstance.
self assert: browser metaLevelScope equals: #testScope
]
{ #category : #tests }
ClyFullBrowserStateTest >> testRestoredBrowserInstanceWithMethodGroupQuery [
browser methodGroupQuery: #testQuery.
self restoreBrowserInstance.
self assert: browser methodGroupQuery equals: #testQuery
]
{ #category : #tests }
ClyFullBrowserStateTest >> testRestoredBrowserInstanceWithSystemScope [
browser systemScope: #testScope.
self restoreBrowserInstance.
self assert: browser systemScope equals: #testScope
]
{ #category : #tests }
ClyFullBrowserStateTest >> testRetrievesMetaLevelScope [
self snapshotState.
self assert: navigationState metaLevelScope equals: browser metaLevelScope
]
{ #category : #tests }
ClyFullBrowserStateTest >> testRetrievesMethodGroupContent [
self snapshotState.
self assert: navigationState methodGroupQuery equals: browser methodGroupQuery
]
{ #category : #tests }
ClyFullBrowserStateTest >> testRetrievesSystemScope [
self snapshotState.
self assert: navigationState systemScope equals: environment systemScope
]