App::SimpleScan::Plugin::Plaintext

App::SimpleScan::Plugin::Plaintext is a Perl module that can check a page's text without markup.
Download

App::SimpleScan::Plugin::Plaintext Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Perl Artistic License
  • Price:
  • FREE
  • Publisher Name:
  • Joe McMahon
  • Publisher web site:
  • http://search.cpan.org/~mcmahon/Class-AutoPlug-0.02/lib/Class/AutoPlug/Pluggable.pm

App::SimpleScan::Plugin::Plaintext Tags


App::SimpleScan::Plugin::Plaintext Description

App::SimpleScan::Plugin::Plaintext is a Perl module that can check a page's text without markup. App::SimpleScan::Plugin::Plaintext is a Perl module that can check a page's text without markup.SYNOPSIS # Normal test specs use the entire HTML text http://perl.org/ /booksn | / Y Sites list HTML # If we want to match just the text, not the HTML: %%plaintext on http://perl.org/ /|books | dev | history | jobs/ Y Literal list # And we can turn this back off again: %%plaintext offThis plugin adds the %%plaintext pragma. This allows you to write test specs that match the visible text on a page, as opposed to the HTML text. This is useful if you want to make sure (for instance) if specific text is on the page, but you don't care how it's marked up.INTERFACEpragmasExports the %%plaintext pragma handler to App::SimpleScan.plaintext_pragmaActually handles the pragma statement. Calls the exported plaintext method to record the current state (on or off).filtersStandard App::SimpleScan callback; returns the code filters.filterIf the plaintext method returns true, we alter the tests to use text_like and text_unlike instead of page_like and page_unlike. In eitehr case, we return the code to the caller (standard interface). Requirements: · Perl


App::SimpleScan::Plugin::Plaintext Related Software