Cool.  I'll check out that next build.  Thanks Jeff.

On Sun, Sep 27, 2009 at 4:52 PM, Jeff Brown <[email protected]> wrote:

>  The rendering of embedded text and HTML is a bit tricky.  Basically the
> attachment content lives in separate files from the main HTML report
> and needs to be pulled in separately.  So the Gallio test report imports the
> content into the report using a hidden iframe and some Javascript.  (Ugly
> but it works... except in IE due to the local machine zone lockdown.
> *sigh*)
>
> Anyways, I found a couple of issues:
>
> 1. We were not enclosing plain text attachment content with <pre> so the
> text was not preformatted.  I have fixed this.
>
> 2. We have special case handling for HTML documents that have <pre> as the
> root element to workaround an IE bug loading certain HTML content.
> Sometimes it will load an HTML document as if it were plain text and then
> wrap it all with <pre>.  So we attempt to detect this problem and unwrap the
> <pre>.  Not sure how we can really fix this but I can prevent it from
> happening on non-IE browsers.
>
> The fix will be in the next build.
>
> Jeff.
>
>  ------------------------------
> *From:* [email protected] [mailto:[email protected]] *On
> Behalf Of *Josh Buedel
> *Sent:* Sunday, September 27, 2009 11:54 AM
> *To:* [email protected]
> *Subject:* MbUnit TestLog Questions
>
> I'm writing some tests that use actual code text snippets as input.  When I
> write those snippets to the test log with TestLog.EmbedPlainText() they
> appear without the formatting (no tabs or endlines).
>  TestLog.EmbedHtml("<pre>" + snippet + "</pre>") didn't seem to help, and
> indeed it seemed the tags I added were stripped away.
> My first question is: How can I add these snippets to the log so they
> retain their formatting when presented?
>
> And the second more general question:  How are the different
> TestLog.Embed(Html|XHtml|ect) intended to be used?  Probably the answer is
> "call the appropriately named method corresponding to the type of data in
> your string", except that the apparent stripping out of my <pre/> tags has
> me wondering.
>
> Thanks!
> Josh
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"MbUnit.User" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/mbunituser?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to