[Wtr-development] [JIRA] Updated: (WTR-350) watirspec-pending: Element#to_s does not include tag name

Charley Baker (JIRA) watirjira at gmail.com
Wed Oct 27 15:42:24 EDT 2010


     [ http://jira.openqa.org/browse/WTR-350?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Charley Baker updated WTR-350:
------------------------------

    Fix Version/s:     (was: 1.6.7)
                   Soon

> watirspec-pending: Element#to_s does not include tag name
> ---------------------------------------------------------
>
>                 Key: WTR-350
>                 URL: http://jira.openqa.org/browse/WTR-350
>             Project: Watir
>          Issue Type: Sub-task
>          Components: HTML Controls
>    Affects Versions: 1.6.2
>         Environment: Watir::IE on WinXP
>            Reporter: Jari Bakken
>            Assignee: Jari Bakken
>            Priority: Major
>             Fix For: Soon
>
>
> Without the tag name, elements without attributes will return empty strings.
> Perhaps we should decide on a new and better string representation of elements?
> 12)
> 'Dd#to_s returns a human readable representation of the element' FAILED
> expected: "tag:          dd\n  id:           someone\n  class:        name\n  title:        someone\n  text:         John Doe",
>      got: "type:         \nid:           someone\nname:         \nvalue:        \ndisabled:     false\nclass:        name\ntext:         John Doe" (using ==)
> ./spec/watirspec/dd_spec.rb:130:
> 16)
> 'Div#to_s returns a human readable representation of the element' FAILED
> expected: "tag:          div\n  id:           footer\n  title:        Closing remarks\n  class:        profile\n  text:         This is a footer.",
>      got: "type:         \nid:           footer\nname:         \nvalue:        \ndisabled:     false\nclass:        profile\ntext:         This is a footer." (using ==)
> ./spec/watirspec/div_spec.rb:226:
> 18)
> 'Dl#to_s returns a human readable representation of the element' FAILED
> expected: "tag:          dl\n  id:           experience-list\n  class:        list\n  title:        experience\n  text:         Experience 11 years Education Master Current industry Architecture Previous industry experience Architecture",
>      got: "type:         \nid:           experience-list\nname:         \nvalue:        \ndisabled:     false\nclass:        list\ntext:         Experience \r\n11 years \r\nEducation \r\nMaster \r\nCurrent industry \r\nArchitecture \r\nPrevious industry experience \r\nArchitecture" (using ==)
> ./spec/watirspec/dl_spec.rb:130:
> 20)
> 'Dt#to_s returns a human readable representation of the element' FAILED
> expected: "tag:          dt\n  id:           experience\n  class:        industry\n  title:        experience\n  text:         Experience",
>      got: "type:         \nid:           experience\nname:         \nvalue:        \ndisabled:     false\nclass:        industry\ntext:         Experience" (using ==)
> ./spec/watirspec/dt_spec.rb:130:
> 24)
> 'Em#to_s returns a human readable representation of the element' FAILED
> expected: "tag:          em\n  class:        important-class\n  id:           important-id\n  title:        ergo cogito\n  text:         ergo cogito",
>      got: "type:         \nid:           important-id\nname:         \nvalue:        \ndisabled:     false\nclass:        important-class\ntext:         ergo cogito" (using ==)
> ./spec/watirspec/em_spec.rb:104:
> 42)
> 'Map#to_s returns a human readable representation of the element' FAILED
> expected: "tag:          map\n  id:           triangle_map\n  name:         triangle_map",
>      got: "type:         \nid:           triangle_map\nname:         triangle_map\nvalue:        \ndisabled:     false\nclass:        \ntext:         " (using ==)
> ./spec/watirspec/map_spec.rb:86:
> 60)
> 'P#to_s returns a human readable representation of the element' FAILED
> expected: "tag:          p\n  id:           lead\n  class:        lead\n  title:        Lorem ipsum\n  text:         Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Curabitur eu pede. Ut justo. Praesent feugiat, elit in feugiat iaculis, sem risus rutrum justo, eget fermentum dolor arcu non nunc.",
>      got: "type:         \nid:           lead\nname:         \nvalue:        \ndisabled:     false\nclass:        lead\ntext:         Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Curabitur eu pede. Ut justo. Praesent feugiat, elit in feugiat iaculis, sem risus rutrum justo, eget fermentum dolor arcu non nunc." (using ==)
> ./spec/watirspec/p_spec.rb:155:
> 61)
> 'Pre#to_s returns a human readable representation of the element' FAILED
> expected: "tag:          pre",
>      got: "type:         \nid:           \nname:         \nvalue:        \ndisabled:     false\nclass:        \ntext:         " (using ==)
> ./spec/watirspec/pre_spec.rb:119:
> 70)
> 'Span#to_s returns a human readable representation of the element' FAILED
> expected: "tag:          span\n  name:         invalid_attribute\n  value:        invalid_attribute\n  text:         Sed pretium metus et quam. Nullam odio dolor, vestibulum non, tempor ut, vehicula sed, sapien. Vestibulum placerat ligula at quam. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas.",
>      got: "type:         \nid:           \nname:         invalid_attribute\nvalue:        invalid_attribute\ndisabled:     false\nclass:        \ntext:         Sed pretium metus et quam. Nullam odio dolor, vestibulum non, tempor ut, vehicula sed, sapien. Vestibulum placerat ligula at quam. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas." (using ==)
> ./spec/watirspec/span_spec.rb:167:
> 71)
> 'Spans#to_s returns a human readable representation of the collection' FAILED
> expected: "tag:          span\n  id:           lead\n  class:        lead\n  title:        Lorem ipsum\n  text:         Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Curabitur eu pede. Ut justo. Praesent feugiat, elit in feugiat iaculis, sem risus rutrum justo, eget fermentum dolor arcu non nunc.\ntag:          span\n  name:         invalid_attribute\n  value:        invalid_attribute\n  text:         Sed pretium metus et quam. Nullam odio dolor, vestibulum non, tempor ut, vehicula sed, sapien. Vestibulum placerat ligula at quam. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas.\ntag:          span\n  text:         Suspendisse at ipsum a turpis viverra venenatis. Praesent ut nibh. Nullam eu odio. Donec tempor, elit ut lacinia porttitor, augue neque vehicula diam, in elementum ligula nisi a tellus. Aliquam vestibulum ultricies tortor.\ntag:          span\n  text:         Dubito, ergo cogito, ergo sum.\ntag:          span\ntag:          span\n  class:        footer\n  name:         footer\n  onclick:      this.innerHTML = 'This is a footer with text set by Javascript.'\n  text:         This is a footer.",
>      got: "type:         \nid:           lead\nname:         \nvalue:        \ndisabled:     false\nclass:        lead\ntext:         Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Curabitur eu pede. Ut justo. Praesent feugiat, elit in feugiat iaculis, sem risus rutrum justo, eget fermentum dolor arcu non nunc.\ntype:         \nid:           \nname:         invalid_attribute\nvalue:        invalid_attribute\ndisabled:     false\nclass:        \ntext:         Sed pretium metus et quam. Nullam odio dolor, vestibulum non, tempor ut, vehicula sed, sapien. Vestibulum placerat ligula at quam. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas.\ntype:         \nid:           \nname:         \nvalue:        \ndisabled:     false\nclass:        \ntext:         Suspendisse at ipsum a turpis viverra venenatis. Praesent ut nibh. Nullam eu odio. Donec tempor, elit ut lacinia porttitor, augue neque vehicula diam, in elementum ligula nisi a tellus. Aliquam vestibulum ultricies tortor.\ntype:         \nid:           \nname:         \nvalue:        \ndisabled:     false\nclass:        \ntext:         Dubito, ergo cogito, ergo sum.\ntype:         \nid:           \nname:         \nvalue:        \ndisabled:     false\nclass:        \ntext:         \ntype:         \nid:           \nname:         footer\nvalue:        \ndisabled:     false\nclass:        footer\ntext:         This is a footer." (using ==)
> ./spec/watirspec/spans_spec.rb:52:

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.openqa.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

       


More information about the Wtr-development mailing list