Zonemaster-GUI

 view release on metacpan or  search on metacpan

FunctionalTests/GR01-test-swedish-language.js  view on Meta::CPAN

var main_url = 'http://zonemaster.rd.nic.fr:5080/';

var x = require('casper').selectXPath;
casper.test.begin('Zonemaster test GR01 - [Supports Swedish language]', 3, function suite(test) {

	casper.start();

	casper.thenOpen(main_url, function(response) {
		test.assert(response != undefined && response.status == 200 , 'Page loaded');
	});

	//
	casper.then(function() {

FunctionalTests/GR02-test-french-language.js  view on Meta::CPAN

var main_url = 'http://zonemaster.rd.nic.fr:5080/';

var x = require('casper').selectXPath;
casper.test.begin('Zonemaster test GR02 - [Supports French language]', 3, function suite(test) {

	casper.start();

	casper.thenOpen(main_url, function(response) {
		test.assert(response != undefined && response.status == 200 , 'Page loaded');
	});

	//
	casper.then(function() {

FunctionalTests/GR03-english-language-support.js  view on Meta::CPAN

var main_url = 'http://zonemaster.rd.nic.fr:5080/';

var x = require('casper').selectXPath;
casper.test.begin('Zonemaster test GR01 - [Supports English language]', 3, function suite(test) {

	casper.start();

	casper.thenOpen(main_url, function(response) {
		test.assert(response != undefined && response.status == 200 , 'Page loaded');
	});

	//
	casper.then(function() {

FunctionalTests/GR04-main-page.js  view on Meta::CPAN

var main_url = 'http://zonemaster.rd.nic.fr:5080/';

var x = require('casper').selectXPath;
casper.test.begin('Zonemaster test GR04 - [On launching the URL opens with a default simple view]', 5, function suite(test) {

	casper.start();

	casper.thenOpen(main_url, function(response) {
		test.assert(response != undefined && response.status == 200 , 'Page loaded');
	});

	casper.then(function() {
		test.assert(

FunctionalTests/GR06-basic-view-advanced-options.js  view on Meta::CPAN

var main_url = 'http://zonemaster.rd.nic.fr:5080/';

var x = require('casper').selectXPath;
casper.test.begin('Zonemaster test GR06 - [The simple view should support an advanced view expanding when the checkbox is enabled]', 5, function suite(test) {

	casper.start();

	casper.thenOpen(main_url, function(response) {
		test.assert(response != undefined && response.status == 200 , 'Page loaded');
	});

	casper.then(function() {
  		test.assertNot(

FunctionalTests/GR07-advanced-checkbox-verification.js  view on Meta::CPAN

var main_url = 'http://zonemaster.rd.nic.fr:5080/';

var x = require('casper').selectXPath;
casper.test.begin('Zonemaster test GR07 - [The advanced view should support the possibility of enabling or disabling IPv4 or IPv6]', 7, function suite(test) {

	casper.start();

	casper.thenOpen(main_url, function(response) {
		test.assert(response != undefined && response.status == 200 , 'Page loaded');
	});

	// Click advanced options
	casper.then(

FunctionalTests/GR08-advanced-profile-verification.js  view on Meta::CPAN

var main_url = 'http://zonemaster.rd.nic.fr:5080/';

var x = require('casper').selectXPath;
casper.test.begin('Zonemaster test GR08 - [The advanced view should support the possibility of choosing a profile from multiple profiles]', 4, function suite(test) {

	casper.start();

	casper.thenOpen(main_url, function(response) {
		test.assert(response != undefined && response.status == 200 , 'Page loaded');
	});

	// Click advanced options
	casper.then(

FunctionalTests/GR10-undelegated-and-faq-links.js  view on Meta::CPAN

var main_url = 'http://zonemaster.rd.nic.fr:5080/';

var x = require('casper').selectXPath;
casper.test.begin('Zonemaster test GR06 - [The simple view should have a shortcut to undelegated view and FAQ]', 3, function suite(test) {

	casper.start();

	casper.thenOpen(main_url, function(response) {
		test.assert(response != undefined && response.status == 200 , 'Page loaded');
	});

	casper.then(function() {
  		test.assert(

FunctionalTests/GR19-advanced-checkbox-verification.js  view on Meta::CPAN

var main_url = 'http://zonemaster.rd.nic.fr:5080/';

var x = require('casper').selectXPath;
casper.test.begin('Zonemaster test GR19 - [Capable to enable and disable checkboxes in advanced option]', 7, function suite(test) {

	casper.start();

	casper.thenOpen(main_url, function(response) {
		test.assert(response != undefined && response.status == 200 , 'Page loaded');
	});

	// Click advanced options
	casper.then(

FunctionalTests/GR20-drop-down-verification.js  view on Meta::CPAN

var main_url = 'http://zonemaster.rd.nic.fr:5080/';

var x = require('casper').selectXPath;
casper.test.begin('Zonemaster test GR20 - [Capable to select one of the drop down menu in the advanced option]', 4, function suite(test) {

	casper.start();

	casper.thenOpen(main_url, function(response) {
		test.assert(response != undefined && response.status == 200 , 'Page loaded');
	});

	// Click advanced options
	casper.then(

FunctionalTests/GR21-check-broken-links.js  view on Meta::CPAN

var main_url = 'http://zonemaster.rd.nic.fr:5080/';

var x = require('casper').selectXPath;
casper.test.begin('Zonemaster test GR21 - [Check the existence of broken links]', 4, function suite(test) {

	casper.start();

	casper.thenOpen(main_url, function(response) {
                test.assert(response != undefined && response.status == 200 , 'Page loaded');
        });

        
	// Click Default link

FunctionalTests/GR22-link-content.js  view on Meta::CPAN

var main_url = 'http://zonemaster.rd.nic.fr:5080/';

var x = require('casper').selectXPath;
casper.test.begin('Zonemaster test GR22 - [Check the contents in each link]', 4, function suite(test) {

	casper.start();

	casper.thenOpen(main_url, function(response) {
                test.assert(response != undefined && response.status == 200 , 'Page loaded');
        });

        
	// Click Default link

t/run_a_predelegated_zonemaster_test.js  view on Meta::CPAN

		else {
			console.log('setText NOK, element with XPath -> '+xpath+' NOT FOUND');
		}
		
		return;
	}, xpath, text );
	
	moveToNextStep();
};

var system = require('system');
if (system.args.length === 1) {
    console.log('This script requires the hostname:port of the Zonemaster server as parameter');
	phantom.exit(1);
}
else {
	var page = require('webpage').create();
	var url = 'http://'+system.args[1]+'/';

	page.onError = function (msg, trace) {
		console.log(msg);
		trace.forEach(function(item) {
			console.log('  ', item.file, ':', item.line);
		});
	};
	
	function printArgs() {

t/run_a_simple_zonemaster_test.js  view on Meta::CPAN

		else {
			console.log('setText NOK, element with XPath -> '+xpath+' NOT FOUND');
		}
		
		return;
	}, xpath, text );
	
	moveToNextStep();
};

var system = require('system');
if (system.args.length === 1) {
    console.log('This script requires the hostname:port of the Zonemaster server as parameter');
	phantom.exit(1);
}
else {
	var page = require('webpage').create();
	var url = 'http://'+system.args[1]+'/';

	page.onError = function (msg, trace) {
		console.log(msg);
		trace.forEach(function(item) {
			console.log('  ', item.file, ':', item.line);
		});
	};
	
	function printArgs() {

t/wait_for_version_string.js  view on Meta::CPAN

		else {
			console.log('Element with XPath -> '+xpath+' NOT FOUND');
		}
		
		return;
	}, xpath );
	
	moveToNextStep();
}

var system = require('system');
if (system.args.length === 1) {
    console.log('This script requires the hostname:port of the Zonemaster server as parameter');
	phantom.exit(1);
}
else {
	var page = require('webpage').create();
	var url = 'http://'+system.args[1]+'/';

	page.onError = function (msg, trace) {
		console.log(msg);
		trace.forEach(function(item) {
			console.log('  ', item.file, ':', item.line);
		});
	};
	
	page.onConsoleMessage = function(msg) {

zm_app/public/components/angular/angular.js  view on Meta::CPAN

            post = cloneAndAnnotateFn(post, {isolateScope: true});
          }
          postLinkFns.push(post);
        }
      }


      function getControllers(directiveName, require, $element, elementControllers) {
        var value, retrievalMethod = 'data', optional = false;
        if (isString(require)) {
          while((value = require.charAt(0)) == '^' || value == '?') {
            require = require.substr(1);
            if (value == '^') {
              retrievalMethod = 'inheritedData';
            }
            optional = optional || value == '?';
          }
          value = null;

          if (elementControllers && retrievalMethod === 'data') {
            value = elementControllers[require];
          }



( run in 0.431 second using v1.01-cache-2.11-cpan-05444aca049 )