static BOOL ipsex;
static BOOL set_clientsite = FALSE, container_locked = FALSE;
static BOOL readystate_set_loading = FALSE, load_from_stream;
-static BOOL editmode = FALSE;
+static BOOL editmode = FALSE, show_failed;
static int stream_read, protocol_read;
static enum load_state_t {
LD_DOLOAD,
expect_status_text = (load_state == LD_COMPLETE ? (LPCOLESTR)0xdeadbeef : NULL);
hres = IOleDocumentView_Show(view, TRUE);
+ if(FAILED(hres)) {
+ win_skip("Show failed\n");
+ if(activeobj)
+ IOleInPlaceActiveObject_Release(activeobj);
+ IOleDocument_Release(document);
+ show_failed = TRUE;
+ return S_OK;
+ }
ok(hres == S_OK, "Show failed: %08x\n", hres);
CHECK_CALLED(CanInPlaceActivate);
test_GetCurMoniker(unk, NULL, NULL);
test_Persist(unk);
test_Navigate(unk);
+ if(show_failed) {
+ IUnknown_Release(unk);
+ return;
+ }
test_download(FALSE, TRUE, TRUE);
container_hwnd = create_container_window();
register_protocol();
- test_HTMLDocument(FALSE);
- test_HTMLDocument(TRUE);
test_HTMLDocument_hlink();
- test_HTMLDocument_StreamLoad();
- test_editing_mode(FALSE);
- test_editing_mode(TRUE);
+ if(!show_failed) {
+ test_HTMLDocument(FALSE);
+ test_HTMLDocument(TRUE);
+ test_HTMLDocument_StreamLoad();
+ test_editing_mode(FALSE);
+ test_editing_mode(TRUE);
+ }
DestroyWindow(container_hwnd);
CoUninitialize();