Exemplo n.º 1
0
        public void TestThings()
        {
            SciterWindow window =
                new SciterWindow()
                .CreateMainWindow(640, 480)
                .SetTitle("Wtf");

            _ = new TestableSciterHost(window);
            window.LoadHtml("<html></html>");

            var sv = window.EvalScript("Utils.readStreamToEnd");

            Assert.IsTrue(!sv.IsUndefined);
        }
Exemplo n.º 2
0
        public void TestThings()
        {
            SciterWindow wnd = new SciterWindow();

            wnd.CreateMainWindow(1500, 800);
            wnd.Title = "Wtf";

            SciterHost host = new SciterHost(wnd);

            wnd.LoadHtml("<html></html>");

            var sv = wnd.EvalScript("Utils.readStreamToEnd");

            Assert.IsTrue(!sv.IsUndefined);
        }