{"id":14,"date":"2009-01-16T15:44:29","date_gmt":"2009-01-16T20:44:29","guid":{"rendered":"http:\/\/blog.mozilla.org\/ted\/?p=14"},"modified":"2009-01-16T15:44:29","modified_gmt":"2009-01-16T20:44:29","slug":"more-tests-kthx","status":"publish","type":"post","link":"https:\/\/blog.mozilla.org\/ted\/2009\/01\/16\/more-tests-kthx\/","title":{"rendered":"more tests, kthx"},"content":{"rendered":"<p><a href=\"http:\/\/boomswaggerboom.wordpress.com\/\">Josh<\/a> recently landed a <a href=\"http:\/\/mxr.mozilla.org\/mozilla-central\/source\/modules\/plugin\/test\/testplugin\/\">test plugin<\/a>, with the intent of finally getting some test coverage of our plugin-handling code via mochitests. This is awesome, as plugins are an area of code where we&#8217;ve caused lots of regressions in the past, and until then had zero automated test coverage. After it landed, I took a peek at the code and noticed that it would be pretty easy to extend it to make it usable in our layout tests (reftest) as well. I just landed some patches to add this functionality, so we can now test that our layout of plugins doesn&#8217;t regress. If you&#8217;d like to write some reftests yourself using this, you can check out the <a href=\"http:\/\/mxr.mozilla.org\/mozilla-central\/source\/modules\/plugin\/test\/reftest\/\">basic tests<\/a> I added along with the patch. (Note: it&#8217;s mac-only at the moment, but there&#8217;s <a title=\"Bug 469831 - need gtk2 drawing code for test plugin\" href=\"https:\/\/bugzilla.mozilla.org\/show_bug.cgi?id=469831\">gtk2 code<\/a> ready to land any minute now, and a <a title=\" Bug 469830 -  need Windows drawing code for test plugin\" href=\"https:\/\/bugzilla.mozilla.org\/show_bug.cgi?id=469830\">win32 implementation<\/a> should be forthcoming.)<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Josh recently landed a test plugin, with the intent of finally getting some test coverage of our plugin-handling code via mochitests. This is awesome, as plugins are an area of code where we&#8217;ve caused lots of regressions in the past, and until then had zero automated test coverage. After it landed, I took a peek [&hellip;]<\/p>\n","protected":false},"author":65,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[189],"tags":[],"_links":{"self":[{"href":"https:\/\/blog.mozilla.org\/ted\/wp-json\/wp\/v2\/posts\/14"}],"collection":[{"href":"https:\/\/blog.mozilla.org\/ted\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.mozilla.org\/ted\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.mozilla.org\/ted\/wp-json\/wp\/v2\/users\/65"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.mozilla.org\/ted\/wp-json\/wp\/v2\/comments?post=14"}],"version-history":[{"count":0,"href":"https:\/\/blog.mozilla.org\/ted\/wp-json\/wp\/v2\/posts\/14\/revisions"}],"wp:attachment":[{"href":"https:\/\/blog.mozilla.org\/ted\/wp-json\/wp\/v2\/media?parent=14"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.mozilla.org\/ted\/wp-json\/wp\/v2\/categories?post=14"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.mozilla.org\/ted\/wp-json\/wp\/v2\/tags?post=14"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}