From 5a0183f7276e4920c5b459b31401dd179c16f0ab Mon Sep 17 00:00:00 2001 From: "Eric A. Miller" Date: Tue, 12 Aug 2014 23:09:49 -0400 Subject: [PATCH] Unit tests for webtoolkit.base64.js --- Netdisco/t/11-webtoolkit.base64.t | 18 ++++++++++++++ Netdisco/t/html/webtoolkit.base64.html | 34 ++++++++++++++++++++++++++ 2 files changed, 52 insertions(+) create mode 100644 Netdisco/t/11-webtoolkit.base64.t create mode 100644 Netdisco/t/html/webtoolkit.base64.html diff --git a/Netdisco/t/11-webtoolkit.base64.t b/Netdisco/t/11-webtoolkit.base64.t new file mode 100644 index 00000000..0234211e --- /dev/null +++ b/Netdisco/t/11-webtoolkit.base64.t @@ -0,0 +1,18 @@ +#!/usr/bin/perl +use strict; +use warnings; + +use Test::More; +use Env::Path; +use FindBin qw( $Bin ); + +my @phantomjs = Env::Path->PATH->Whence('phantomjs'); +my $phantomjs = scalar @phantomjs ? $phantomjs[0] : $ENV{ND_PHANTOMJS}; + +if ( !-x $phantomjs ) { + plan skip_all => + "phantomjs not found, please set ND_PHANTOMJS or install phantomjs to the default location"; +} +else { + exec( $phantomjs, "$Bin/js/run_qunit.js", "$Bin/html/webtoolkit.base64.html" ); +} diff --git a/Netdisco/t/html/webtoolkit.base64.html b/Netdisco/t/html/webtoolkit.base64.html new file mode 100644 index 00000000..2d125edd --- /dev/null +++ b/Netdisco/t/html/webtoolkit.base64.html @@ -0,0 +1,34 @@ + + + + + webtoolkit.base64.js unit tests + + + + +
+
+ + + + + + +