Exemple #1
0
        /// <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);
        }
Exemple #2
0
        /// <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());
        }