public void BeforeEachTestSetup() { Xpcom.Initialize(XpComTests.XulRunnerLocation); _browser = new GeckoWebBrowser(); var unused = _browser.Handle; Assert.IsNotNull(_browser); GeckoWebBrowserTextExtensionMethods.TestLoadHtml(_browser, "some random html"); //_browser.TestLoadHtml("some random html"); _style = _browser.Document.Body.Style; }
public void BeforeEachTestSetup() { Xpcom.Initialize(XpComTests.XulRunnerLocation); _browser = new GeckoWebBrowser(); var unused = _browser.Handle; Assert.IsNotNull(_browser); _browser.TestLoadEditableHtmlViaStream("<html><head><style type='text/css'>body { color: red }</style></head><body>some random html</body></html>"); _style = _browser.Document.Body.Style; }
public void BeforeEachTestSetup() { Xpcom.Initialize(XpComTests.XulRunnerLocation); _browser = new GeckoWebBrowser(); var unused = _browser.Handle; Assert.IsNotNull(_browser); _browser.TestLoadHtml("some random html"); _style = _browser.Document.Body.Style; }