From a794dd43cf1d64abf607840f2cd8e8a020632795 Mon Sep 17 00:00:00 2001 From: Martin Edenhofer Date: Wed, 7 Aug 2013 09:53:53 +0200 Subject: [PATCH] Added qunit pages to browser tests. --- test/browser/core.rb | 49 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 test/browser/core.rb diff --git a/test/browser/core.rb b/test/browser/core.rb new file mode 100644 index 000000000..60521227b --- /dev/null +++ b/test/browser/core.rb @@ -0,0 +1,49 @@ +# encoding: utf-8 +require 'browser_test_helper' + +class CoreTest < TestCase + def test_core + tests = [ + { + :name => 'start', + :instance => browser_instance, + :url => browser_url + '/tests-core', + :action => [ + { + :execute => 'wait', + :value => 8, + }, + { + :execute => 'match', + :css => '.result .failed', + :value => '0', + :match_result => true, + }, + ], + }, + ] + browser_single_test(tests) + end + def test_form + tests = [ + { + :name => 'start', + :instance => browser_instance, + :url => browser_url + '/tests-form', + :action => [ + { + :execute => 'wait', + :value => 8, + }, + { + :execute => 'match', + :css => '.result .failed', + :value => '0', + :match_result => true, + }, + ], + }, + ] + browser_single_test(tests) + end +end