Fix two test cases.
Lars Kanis
8 years ago
10 | 10 |
|
11 | 11 |
def test_created?
|
12 | 12 |
assert !mainWindow.created?
|
13 | |
app.create
|
|
13 |
mainWindow.create
|
14 | 14 |
assert mainWindow.created?, "main window should be created after call to FXApp#create"
|
15 | 15 |
mainWindow.destroy
|
16 | 16 |
assert !mainWindow.created?
|
10 | 10 |
end
|
11 | 11 |
|
12 | 12 |
def test_non_created_app_raises_runtime_error
|
|
13 |
pend "two FXApp are not allowed"
|
13 | 14 |
app = FXApp.new
|
14 | 15 |
assert_raise RuntimeError do
|
15 | 16 |
FXMainWindow.new(app, "title").create
|