RESOLVED FIXED 38846
Merge some pseudo-valid-*.html tests into one
https://bugs.webkit.org/show_bug.cgi?id=38846
Summary Merge some pseudo-valid-*.html tests into one
Kent Tamura
Reported 2010-05-10 08:28:48 PDT
Merge some pseudo-valid-*.html tests into one
Attachments
Patch (10.59 KB, patch)
2010-05-10 08:36 PDT, Kent Tamura
no flags
Kent Tamura
Comment 1 2010-05-10 08:32:44 PDT
I'm going to add test cases for pseudo :valid. Before that, I'd like to merge and rename existing tests.
Kent Tamura
Comment 2 2010-05-10 08:36:39 PDT
Kent Tamura
Comment 3 2010-05-10 22:36:14 PDT
Hamaji-san, could you review this?
Shinichiro Hamaji
Comment 4 2010-05-10 22:49:01 PDT
Comment on attachment 55556 [details] Patch > +var notValidColor = "rgb(0, 255, 0)"; > +for (var i = 0; i < names.length; i++) > + shouldBe("getBackgroundColor('" + names[i] + "')", "notValidColor"); I slightly prefer rgb(0, 255, 0) to notValidColor because "foobar is not valid color" sounds like this test is failing. shouldBe("getBackgroundColor('" + names[i] + "')", "rgb(0, 255, 0)"); Also, I think the color should be not valid nor invalid, right?
Kent Tamura
Comment 5 2010-05-10 22:56:59 PDT
Thank you for reviewing! (In reply to comment #4) > (From update of attachment 55556 [details]) > > +var notValidColor = "rgb(0, 255, 0)"; > > +for (var i = 0; i < names.length; i++) > > + shouldBe("getBackgroundColor('" + names[i] + "')", "notValidColor"); > > I slightly prefer rgb(0, 255, 0) to notValidColor because "foobar is not valid color" sounds like this test is failing. I see. It might be confusing. ok, I'll change notValidColor before landing this. > shouldBe("getBackgroundColor('" + names[i] + "')", "rgb(0, 255, 0)"); > > Also, I think the color should be not valid nor invalid, right? You're right.
Kent Tamura
Comment 6 2010-05-11 09:15:05 PDT
Landed as r59153
Note You need to log in before you can comment on or make changes to this bug.