]> iEval git - html-element-library.git/blobdiff - t/replace_content.t
Refactor tests (second pass)
[html-element-library.git] / t / replace_content.t
diff --git a/t/replace_content.t b/t/replace_content.t
deleted file mode 100644 (file)
index 4723593..0000000
+++ /dev/null
@@ -1,16 +0,0 @@
-#!/usr/bin/perl
-use t::lib tests => 1;
-
-my $t1 = HTML::Element->new_from_lol(
-       ['html',
-        ['head',
-         [ 'title', 'I like stuff!' ]],
-        ['body', {id => 'corpus'}, {'lang', 'en-JP'},
-         'stuff',
-         ['p', 'um, p < 4!', {'class' => 'par123'}],
-         ['div', {foo => 'bar'}, '123'], # at 0.1.2
-         ['div', {jack => 'olantern'}, '456']]]); # at 0.1.2
-
-$t1->look_down('_tag' => 'body')->replace_content('all gone!');
-
-isxml $t1, \'<html><head><title>I like stuff!</title></head><body id="corpus" lang="en-JP">all gone!</body></html>', 'replace_content';
This page took 0.021823 seconds and 4 git commands to generate.