{"id":18071579,"url":"https://github.com/cho45/test-html-differences","last_synced_at":"2025-04-05T17:29:18.388Z","repository":{"id":56833355,"uuid":"1136728","full_name":"cho45/Test-HTML-Differences","owner":"cho45","description":"Perl module for testing HTML structure","archived":false,"fork":false,"pushed_at":"2016-12-09T03:18:51.000Z","size":29,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-11T14:32:29.504Z","etag":null,"topics":["html","perl","testing"],"latest_commit_sha":null,"homepage":"","language":"Perl","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cho45.png","metadata":{"files":{"readme":"README.md","changelog":"Changes","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2010-12-03T23:19:10.000Z","updated_at":"2018-08-16T04:56:12.000Z","dependencies_parsed_at":"2022-09-07T03:03:51.808Z","dependency_job_id":null,"html_url":"https://github.com/cho45/Test-HTML-Differences","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cho45%2FTest-HTML-Differences","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cho45%2FTest-HTML-Differences/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cho45%2FTest-HTML-Differences/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cho45%2FTest-HTML-Differences/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cho45","download_url":"https://codeload.github.com/cho45/Test-HTML-Differences/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247373085,"owners_count":20928497,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["html","perl","testing"],"created_at":"2024-10-31T09:15:51.670Z","updated_at":"2025-04-05T17:29:18.361Z","avatar_url":"https://github.com/cho45.png","language":"Perl","funding_links":[],"categories":[],"sub_categories":[],"readme":"# NAME\n\nTest::HTML::Differences - Compare two html structures and show differences if it is not same\n\n# SYNOPSIS\n\n    use Test::Base -Base;\n    use Test::HTML::Differences;\n\n    plan tests =\u003e 1 * blocks;\n    \n    run {\n        my ($block) = @_;\n        eq_or_diff_html(\n            $block-\u003einput,\n            $block-\u003eexpected,\n            $block-\u003ename\n        );\n    };\n\n    __END__\n    === test\n    --- input\n    \u003cdiv class=\"section\"\u003efoo \u003ca href=\"/\"\u003efoo\u003c/a\u003e\u003c/div\u003e\n    --- expected\n    \u003cdiv class=\"section\"\u003e\n      foo \u003ca href=\"/\"\u003efoo\u003c/a\u003e\n    \u003c/div\u003e\n\n# DESCRIPTION\n\nTest::HTML::Differences is test utility that compares two strings as HTML and show differences with Test::Differences.\n\nSupplied HTML strings are normalized to data structure and show pretty formatted as it is shown.\n\nThis module does not test all HTML node strictly,\nleading/trailing white-space characters are removed by the normalize function,\nbut do test whole structures of the HTML.\n\nFor example:\n\n    \u003cspan\u003e foo\u003c/span\u003e\n\nis called equal to following:\n\n    \u003cspan\u003efoo\u003c/span\u003e\n\nYou must test these case by other methods, for example, old-school `like` or `is` function in Test::More as you want to test it.\n\n## With Test::Differences::Color\n\nTest::HTML::Differences supports Test::Differences::Color as following:\n\n    use Test::HTML::Differences -color;\n\n# AUTHOR\n\ncho45 \u003ccho45@lowreal.net\u003e\n\n# SEE ALSO\n\n[Test::Differences](https://metacpan.org/pod/Test::Differences), [Test::Differences::Color](https://metacpan.org/pod/Test::Differences::Color)\n\n# LICENSE\n\nThis library is free software; you can redistribute it and/or modify\nit under the same terms as Perl itself.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcho45%2Ftest-html-differences","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcho45%2Ftest-html-differences","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcho45%2Ftest-html-differences/lists"}