/// <summary> /// Applies the test framework styles to the control. /// </summary> /// <param name="control">The control reference.</param> public override void ApplyStyle(HtmlControl control) { // For all controls, set the default font and size WebBrowserTestPage.SetDefaultFont(control); WebBrowserTestPage.SetDefaultFontSize(control); }
/// <summary> /// Appends text to the log, in a fixed-width font. /// </summary> /// <param name="value">The string to append.</param> protected void AppendFixedText(string value) { HtmlSpan span = new HtmlSpan(); WebBrowserTestPage.SetDefaultFixedFont(span); WebBrowserTestPage.SetDefaultFontSize(span); span.ForegroundColor = Color.LightGray; span.InnerHtml = value; _myLog.Controls.Add(span); _myLog.Controls.Add(new HtmlLineBreak()); }
/// <summary> /// Initializes the test harness. /// </summary> /// <param name="settings">The test harness settings object.</param> public override void Initialize(TestHarnessSettings settings) { base.Initialize(settings); RegisterLoggingHandlers(); // Initializes the static provider control if it does not yet exist WebBrowserTestPage page = WebpageLogProviderBase.TestPage; // Creates and appends the header control _control = new TestColumnHeader(DisplayName); page.TestColumn.Controls.Add(_control); }
/// <summary> /// Initializes the test harness. /// </summary> /// <param name="settings">The test harness settings object.</param> public override void Initialize(TestHarnessSettings settings) { base.Initialize(settings); RegisterLogHandlers(); // Initializes the static provider control if it does not yet exist WebBrowserTestPage page = WebpageLogProviderBase.TestPage; // Simple div for logging _myLog = new HtmlDiv(); _myLog.Padding.All = 0; page.TestColumn.Controls.Add(_myLog); }