init
This commit is contained in:
4
vendor/codeception/base/tests/data/app/.htaccess
vendored
Normal file
4
vendor/codeception/base/tests/data/app/.htaccess
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
RewriteEngine On
|
||||
RewriteCond %{REQUEST_FILENAME} !-f
|
||||
RewriteCond %{REQUEST_FILENAME} !-d
|
||||
RewriteRule . /index.php
|
||||
BIN
vendor/codeception/base/tests/data/app/avatar.jpg
vendored
Normal file
BIN
vendor/codeception/base/tests/data/app/avatar.jpg
vendored
Normal file
Binary file not shown.
272
vendor/codeception/base/tests/data/app/controllers.php
vendored
Normal file
272
vendor/codeception/base/tests/data/app/controllers.php
vendored
Normal file
@@ -0,0 +1,272 @@
|
||||
<?php
|
||||
class index {
|
||||
function GET($matches) {
|
||||
include __DIR__.'/view/index.php';
|
||||
}
|
||||
|
||||
function POST($matches) {
|
||||
include __DIR__.'/view/index.php';
|
||||
}
|
||||
}
|
||||
|
||||
class info {
|
||||
function GET() {
|
||||
if (isset($_SERVER['HTTP_X_REQUESTED_WITH'])) data::set('ajax',array('GET'));
|
||||
data::set('params', $_GET);
|
||||
include __DIR__.'/view/info.php';
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
class redirect {
|
||||
function GET() {
|
||||
header('Location: /info');
|
||||
}
|
||||
}
|
||||
|
||||
class redirect4 {
|
||||
function GET() {
|
||||
header('Location: /search?ln=test@gmail.com&sn=testnumber');
|
||||
}
|
||||
}
|
||||
|
||||
class redirect_relative {
|
||||
function GET() {
|
||||
header('Location: info');
|
||||
}
|
||||
}
|
||||
|
||||
class redirect2 {
|
||||
function GET() {
|
||||
include __DIR__.'/view/redirect2.php';
|
||||
}
|
||||
}
|
||||
|
||||
class redirect3 {
|
||||
function GET() {
|
||||
header('Refresh:0;url=/info');
|
||||
}
|
||||
}
|
||||
|
||||
class redirect_twice {
|
||||
function GET() {
|
||||
header('Location: /redirect3');
|
||||
}
|
||||
}
|
||||
|
||||
class redirect_params {
|
||||
function GET() {
|
||||
include __DIR__.'/view/redirect_params.php';
|
||||
}
|
||||
}
|
||||
|
||||
class redirect_interval {
|
||||
function GET() {
|
||||
include __DIR__.'/view/redirect_interval.php';
|
||||
}
|
||||
}
|
||||
|
||||
class redirect_meta_refresh {
|
||||
function GET() {
|
||||
include __DIR__.'/view/redirect_meta_refresh.php';
|
||||
}
|
||||
}
|
||||
|
||||
class redirect_header_interval {
|
||||
function GET() {
|
||||
include __DIR__.'/view/index.php';
|
||||
header('Refresh:1800;url=/info');
|
||||
}
|
||||
}
|
||||
|
||||
class redirect_base_uri_has_path {
|
||||
function GET() {
|
||||
header('Refresh:0;url=/somepath/info');
|
||||
}
|
||||
}
|
||||
|
||||
class redirect_base_uri_has_path_302 {
|
||||
function GET() {
|
||||
header('Location: /somepath/info', true, 302);
|
||||
}
|
||||
}
|
||||
|
||||
class location_201 {
|
||||
function GET() {
|
||||
header('Location: /info', true, 201);
|
||||
}
|
||||
}
|
||||
|
||||
class external_url {
|
||||
function GET() {
|
||||
include __DIR__ . '/view/external_url.php';
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
class login {
|
||||
|
||||
function GET($matches) {
|
||||
include __DIR__.'/view/login.php';
|
||||
}
|
||||
|
||||
function POST() {
|
||||
data::set('form', $_POST);
|
||||
include __DIR__.'/view/login.php';
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
class cookies {
|
||||
|
||||
function GET($matches) {
|
||||
if (isset($_COOKIE['foo']) && $_COOKIE['foo'] === 'bar1') {
|
||||
if (isset($_COOKIE['baz']) && $_COOKIE['baz'] === 'bar2') {
|
||||
header('Location: /info');
|
||||
}
|
||||
} else {
|
||||
include __DIR__.'/view/cookies.php';
|
||||
}
|
||||
}
|
||||
|
||||
function POST() {
|
||||
setcookie('f', 'b', time() + 60, null, null, false, true);
|
||||
setcookie('foo', 'bar1', time() + 60, null, 'sub.localhost', false, true);
|
||||
setcookie('baz', 'bar2', time() + 60, null, 'sub.localhost', false, true);
|
||||
data::set('form', $_POST);
|
||||
include __DIR__.'/view/cookies.php';
|
||||
}
|
||||
}
|
||||
|
||||
class cookiesHeader {
|
||||
public function GET()
|
||||
{
|
||||
header("Set-Cookie: a=b;Path=/;");
|
||||
header("Set-Cookie: c=d;Path=/;", false);
|
||||
include __DIR__.'/view/index.php';
|
||||
}
|
||||
}
|
||||
|
||||
class iframe {
|
||||
public function GET()
|
||||
{
|
||||
include __DIR__.'/view/iframe.php';
|
||||
}
|
||||
}
|
||||
|
||||
class facebookController {
|
||||
function GET($matches) {
|
||||
include __DIR__.'/view/facebook.php';
|
||||
}
|
||||
}
|
||||
|
||||
class form {
|
||||
function GET($matches) {
|
||||
data::set('query', $_GET);
|
||||
$url = strtolower($matches[1]);
|
||||
if (empty($matches[1])) {
|
||||
$url = 'index';
|
||||
}
|
||||
include __DIR__.'/view/form/'.$url.'.php';
|
||||
}
|
||||
|
||||
function POST() {
|
||||
data::set('query', $_GET);
|
||||
data::set('form', $_POST);
|
||||
data::set('files', $_FILES);
|
||||
if (isset($_SERVER['HTTP_X_REQUESTED_WITH'])) {
|
||||
data::set('ajax','post');
|
||||
}
|
||||
|
||||
$notice = 'Thank you!';
|
||||
include __DIR__.'/view/index.php';
|
||||
}
|
||||
}
|
||||
|
||||
class articles {
|
||||
function DELETE() {
|
||||
}
|
||||
|
||||
function PUT() {
|
||||
}
|
||||
}
|
||||
|
||||
class search {
|
||||
function GET($matches) {
|
||||
$result = null;
|
||||
if (isset($_GET['searchQuery']) && $_GET['searchQuery'] == 'test') {
|
||||
$result = 'Success';
|
||||
}
|
||||
data::set('params', $_GET);
|
||||
include __DIR__.'/view/search.php';
|
||||
}
|
||||
}
|
||||
|
||||
class httpAuth {
|
||||
function GET() {
|
||||
if (!isset($_SERVER['PHP_AUTH_USER'])) {
|
||||
header('WWW-Authenticate: Basic realm="test"');
|
||||
header('HTTP/1.0 401 Unauthorized');
|
||||
echo 'Unauthorized';
|
||||
return;
|
||||
}
|
||||
if ($_SERVER['PHP_AUTH_PW'] == 'password') {
|
||||
echo "Welcome, " . $_SERVER['PHP_AUTH_USER'];
|
||||
return;
|
||||
}
|
||||
echo "Forbidden";
|
||||
}
|
||||
}
|
||||
|
||||
class register {
|
||||
function GET() {
|
||||
include __DIR__.'/view/register.php';
|
||||
}
|
||||
|
||||
function POST() {
|
||||
$this->GET();
|
||||
}
|
||||
}
|
||||
|
||||
class contentType1 {
|
||||
function GET() {
|
||||
header('Content-Type:', true);
|
||||
include __DIR__.'/view/content_type.php';
|
||||
}
|
||||
}
|
||||
|
||||
class contentType2 {
|
||||
function GET() {
|
||||
header('Content-Type:', true);
|
||||
include __DIR__.'/view/content_type2.php';
|
||||
}
|
||||
}
|
||||
|
||||
class unsetCookie {
|
||||
function GET() {
|
||||
header('Set-Cookie: a=; Expires=Thu, 01 Jan 1970 00:00:01 GMT');
|
||||
}
|
||||
}
|
||||
|
||||
class basehref {
|
||||
function GET() {
|
||||
include __DIR__.'/view/basehref.php';
|
||||
}
|
||||
}
|
||||
|
||||
class jserroronload {
|
||||
function GET() {
|
||||
include __DIR__.'/view/jserroronload.php';
|
||||
}
|
||||
}
|
||||
|
||||
class userAgent {
|
||||
function GET() {
|
||||
echo $_SERVER['HTTP_USER_AGENT'];
|
||||
}
|
||||
}
|
||||
class minimal {
|
||||
function GET() {
|
||||
include __DIR__.'/view/minimal.php';
|
||||
}
|
||||
}
|
||||
42
vendor/codeception/base/tests/data/app/data.php
vendored
Normal file
42
vendor/codeception/base/tests/data/app/data.php
vendored
Normal file
@@ -0,0 +1,42 @@
|
||||
<?php
|
||||
class data {
|
||||
|
||||
public static $filename = '/db';
|
||||
|
||||
public static function get($key) {
|
||||
$data = self::load();
|
||||
return $data[$key];
|
||||
}
|
||||
|
||||
public static function set($key, $value)
|
||||
{
|
||||
$data = self::load();
|
||||
$data[$key] = $value;
|
||||
self::save($data);
|
||||
}
|
||||
|
||||
public static function remove($key)
|
||||
{
|
||||
$data = self::load();
|
||||
unset($data[$key]);
|
||||
self::save($data);
|
||||
}
|
||||
|
||||
public static function clean()
|
||||
{
|
||||
self::save(array());
|
||||
}
|
||||
|
||||
protected static function load()
|
||||
{
|
||||
$data = file_get_contents(__DIR__.self::$filename);
|
||||
$data = $data ? unserialize($data) : $data = array();
|
||||
if (!is_array($data)) $data = array();
|
||||
return $data;
|
||||
}
|
||||
|
||||
protected static function save($data)
|
||||
{
|
||||
file_put_contents(__DIR__.self::$filename, serialize($data));
|
||||
}
|
||||
}
|
||||
75
vendor/codeception/base/tests/data/app/glue.php
vendored
Normal file
75
vendor/codeception/base/tests/data/app/glue.php
vendored
Normal file
@@ -0,0 +1,75 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* glue
|
||||
*
|
||||
* Provides an easy way to map URLs to classes. URLs can be literal
|
||||
* strings or regular expressions.
|
||||
*
|
||||
* When the URLs are processed:
|
||||
* * delimiter (/) are automatically escaped: (\/)
|
||||
* * The beginning and end are anchored (^ $)
|
||||
* * An optional end slash is added (/?)
|
||||
* * The i option is added for case-insensitive searches
|
||||
*
|
||||
* Example:
|
||||
*
|
||||
* $urls = array(
|
||||
* '/' => 'index',
|
||||
* '/page/(\d+) => 'page'
|
||||
* );
|
||||
*
|
||||
* class page {
|
||||
* function GET($matches) {
|
||||
* echo "Your requested page " . $matches[1];
|
||||
* }
|
||||
* }
|
||||
*
|
||||
* glue::stick($urls);
|
||||
*
|
||||
*/
|
||||
class glue {
|
||||
|
||||
/**
|
||||
* stick
|
||||
*
|
||||
* the main static function of the glue class.
|
||||
*
|
||||
* @param array $urls The regex-based url to class mapping
|
||||
* @throws Exception Thrown if corresponding class is not found
|
||||
* @throws Exception Thrown if no match is found
|
||||
* @throws BadMethodCallException Thrown if a corresponding GET,POST is not found
|
||||
*
|
||||
*/
|
||||
static function stick ($urls) {
|
||||
|
||||
$method = strtoupper($_SERVER['REQUEST_METHOD']);
|
||||
$path = $_SERVER['REQUEST_URI'];
|
||||
|
||||
$found = false;
|
||||
|
||||
krsort($urls);
|
||||
|
||||
foreach ($urls as $regex => $class) {
|
||||
$regex = str_replace('/', '\/', $regex);
|
||||
$regex = '^' . $regex . '\/?$';
|
||||
if (preg_match("/$regex/i", $path, $matches)) {
|
||||
$found = true;
|
||||
if (class_exists($class)) {
|
||||
$obj = new $class;
|
||||
if (method_exists($obj, $method)) {
|
||||
$obj->$method($matches);
|
||||
} else {
|
||||
throw new BadMethodCallException("Method, $method, not supported.");
|
||||
}
|
||||
} else {
|
||||
throw new Exception("Class, $class, not found.");
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
if (!$found) {
|
||||
throw new Exception("URL, $path, not found.");
|
||||
}
|
||||
}
|
||||
}
|
||||
8
vendor/codeception/base/tests/data/app/hhvm-server.ini
vendored
Normal file
8
vendor/codeception/base/tests/data/app/hhvm-server.ini
vendored
Normal file
@@ -0,0 +1,8 @@
|
||||
hhvm.server.port = 8000
|
||||
hhvm.server.type = proxygen
|
||||
hhvm.server.default_document = index.php
|
||||
hhvm.server.error_document404 = index.php
|
||||
hhvm.repo.central.path = /var/run/hhvm/hhvm.hhbc
|
||||
hhvm.log.use_log_file = false
|
||||
hhvm.hack.lang.auto_typecheck=0
|
||||
hhvm.hack.lang.look_for_typechecker=0
|
||||
54
vendor/codeception/base/tests/data/app/index.php
vendored
Normal file
54
vendor/codeception/base/tests/data/app/index.php
vendored
Normal file
@@ -0,0 +1,54 @@
|
||||
<?php
|
||||
if (!headers_sent()) header('Content-Type: text/html; charset=UTF-8');
|
||||
require_once __DIR__.'/../../../autoload.php';
|
||||
|
||||
if (file_exists(__DIR__ . '/../sandbox/c3.php')) {
|
||||
require __DIR__ . '/../sandbox/c3.php';
|
||||
} else {
|
||||
require __DIR__ . '/../claypit/c3.php';
|
||||
}
|
||||
|
||||
require_once('glue.php');
|
||||
require_once('data.php');
|
||||
require_once('controllers.php');
|
||||
|
||||
$urls = array(
|
||||
'/' => 'index',
|
||||
'/info' => 'info',
|
||||
'/cookies' => 'cookies',
|
||||
'/cookies2' => 'cookiesHeader',
|
||||
'/search.*' => 'search',
|
||||
'/login' => 'login',
|
||||
'/redirect' => 'redirect',
|
||||
'/redirect2' => 'redirect2',
|
||||
'/redirect3' => 'redirect3',
|
||||
'/redirect4' => 'redirect4',
|
||||
'/redirect_params' => 'redirect_params',
|
||||
'/redirect_interval' => 'redirect_interval',
|
||||
'/redirect_header_interval' => 'redirect_header_interval',
|
||||
'/redirect_meta_refresh' => 'redirect_meta_refresh',
|
||||
'/location_201' => 'location_201',
|
||||
'/relative_redirect' => 'redirect_relative',
|
||||
'/relative/redirect' => 'redirect_relative',
|
||||
'/redirect_twice' => 'redirect_twice',
|
||||
'/relative/info' => 'info',
|
||||
'/somepath/redirect_base_uri_has_path' => 'redirect_base_uri_has_path',
|
||||
'/somepath/redirect_base_uri_has_path_302' => 'redirect_base_uri_has_path_302',
|
||||
'/somepath/info' => 'info',
|
||||
'/facebook\??.*' => 'facebookController',
|
||||
'/form/(.*?)(#|\?.*?)?' => 'form',
|
||||
'/user-agent' => 'userAgent',
|
||||
'/articles\??.*' => 'articles',
|
||||
'/auth' => 'httpAuth',
|
||||
'/register' => 'register',
|
||||
'/content-iso' => 'contentType1',
|
||||
'/content-cp1251' => 'contentType2',
|
||||
'/unset-cookie' => 'unsetCookie',
|
||||
'/external_url' => 'external_url',
|
||||
'/iframe' => 'iframe',
|
||||
'/basehref' => 'basehref',
|
||||
'/jserroronload' => 'jserroronload',
|
||||
'/minimal' => 'minimal',
|
||||
);
|
||||
|
||||
glue::stick($urls);
|
||||
23
vendor/codeception/base/tests/data/app/view/basehref.php
vendored
Normal file
23
vendor/codeception/base/tests/data/app/view/basehref.php
vendored
Normal file
@@ -0,0 +1,23 @@
|
||||
<!DOCTYPE HTML>
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<base href="/form/">
|
||||
|
||||
<p>
|
||||
<a href="example7">Relative Link</a>
|
||||
</p>
|
||||
|
||||
|
||||
<form action="example5" method="post">
|
||||
<input type="text" name="rus" value="Верно"/>
|
||||
<div id="button-container">
|
||||
<input type="submit" value="Relative Form"/>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
6
vendor/codeception/base/tests/data/app/view/content_type.php
vendored
Normal file
6
vendor/codeception/base/tests/data/app/view/content_type.php
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
<html>
|
||||
<meta http-equiv="Content-Type" content="text/html;charset=ISO-8859-1">
|
||||
<body>
|
||||
<h1>ANSI</h1>
|
||||
</body>
|
||||
</html>
|
||||
9
vendor/codeception/base/tests/data/app/view/content_type2.php
vendored
Normal file
9
vendor/codeception/base/tests/data/app/view/content_type2.php
vendored
Normal file
@@ -0,0 +1,9 @@
|
||||
<html>
|
||||
<meta charset="windows-1251">
|
||||
<body>
|
||||
<h1>CP1251</h1>
|
||||
<p>
|
||||
<?= print_r(headers_list()); ?>
|
||||
</p>
|
||||
</body>
|
||||
</html>
|
||||
8
vendor/codeception/base/tests/data/app/view/cookies.php
vendored
Normal file
8
vendor/codeception/base/tests/data/app/view/cookies.php
vendored
Normal file
@@ -0,0 +1,8 @@
|
||||
<html>
|
||||
<body>
|
||||
<?php echo "<pre>" . print_r($_COOKIE, 1) . "</pre>";
|
||||
?>
|
||||
<h1>Cookies.php View</h1>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
5
vendor/codeception/base/tests/data/app/view/external_url.php
vendored
Normal file
5
vendor/codeception/base/tests/data/app/view/external_url.php
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
<html>
|
||||
<body>
|
||||
<a href="http://codeception.com/">Next</a>
|
||||
</body>
|
||||
</html>
|
||||
110
vendor/codeception/base/tests/data/app/view/facebook.php
vendored
Normal file
110
vendor/codeception/base/tests/data/app/view/facebook.php
vendored
Normal file
@@ -0,0 +1,110 @@
|
||||
<?php
|
||||
/**
|
||||
* Copyright 2011 Facebook, Inc.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License"); you may
|
||||
* not use this file except in compliance with the License. You may obtain
|
||||
* a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
||||
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
||||
* License for the specific language governing permissions and limitations
|
||||
* under the License.
|
||||
*/
|
||||
|
||||
use Facebook\Exceptions\FacebookSDKException;
|
||||
|
||||
/**
|
||||
* Facebook gives cross-site-request-forgery-validation-failed without
|
||||
* initializing session data and without having the
|
||||
* 'persistent_data_handler' => 'session' property below
|
||||
*/
|
||||
session_start();
|
||||
|
||||
/**
|
||||
* you should update these values when debugging,
|
||||
* NOTE website URL for the app must be be set to http://localhost:8000/
|
||||
*/
|
||||
$fb = new Facebook\Facebook(array(
|
||||
'app_id' => '460287924057084',
|
||||
'app_secret' => 'e27a5a07f9f07f52682d61dd69b716b5',
|
||||
'default_graph_version' => 'v2.5',
|
||||
'persistent_data_handler' => 'session'
|
||||
));
|
||||
|
||||
$helper = $fb->getRedirectLoginHelper();
|
||||
|
||||
$permissions = [];
|
||||
|
||||
//after logging in facebook will redirect us to this callback page
|
||||
$callback = 'http://localhost:8000/facebook';
|
||||
|
||||
try {
|
||||
$accessToken = $helper->getAccessToken();
|
||||
if ($accessToken) {
|
||||
//if everything is ok we have accessToken from the callback
|
||||
$response = $fb->get('/me', $accessToken);
|
||||
$user = $response->getGraphUser()->asArray();
|
||||
$logoutUrl = $helper->getLogoutUrl($accessToken, $callback);
|
||||
$errorCode = 0;
|
||||
} else {
|
||||
//the first time we come to this page access token will be null
|
||||
$loginUrl = $helper->getLoginUrl($callback);
|
||||
$errorCode = 1;
|
||||
$user = null;
|
||||
}
|
||||
} catch (FacebookSDKException $e) {
|
||||
//the second time we come to this we might get this if something is wrong with login
|
||||
$errorCode = " 3 " . $e->getMessage();
|
||||
$user = null;
|
||||
}
|
||||
|
||||
?>
|
||||
<!doctype html>
|
||||
<html xmlns:fb="http://www.facebook.com/2008/fbml">
|
||||
<head>
|
||||
<title>php-sdk</title>
|
||||
<style>
|
||||
body {
|
||||
font-family: 'Lucida Grande', Verdana, Arial, sans-serif;
|
||||
}
|
||||
h1 a {
|
||||
text-decoration: none;
|
||||
color: #3b5998;
|
||||
}
|
||||
h1 a:hover {
|
||||
text-decoration: underline;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<h1>php-sdk</h1>
|
||||
|
||||
<pre><?php print_r("\n errorCode: $errorCode\n"); ?></pre>
|
||||
|
||||
<?php if ($user): ?>
|
||||
<a href="<?php echo $logoutUrl; ?>">Logout</a>
|
||||
<?php else: ?>
|
||||
<div>
|
||||
Login using OAuth 2.0 handled by the PHP SDK:
|
||||
<a href="<?php echo $loginUrl; ?>">Login with Facebook</a>
|
||||
</div>
|
||||
<?php endif ?>
|
||||
|
||||
<h3>PHP Session</h3>
|
||||
<pre><?php print_r($_SESSION); ?></pre>
|
||||
|
||||
<?php if ($user): ?>
|
||||
<h3>You</h3>
|
||||
<img src="https://graph.facebook.com/<?php echo $user['id']; ?>/picture">
|
||||
|
||||
<h3>Your User Object (/me)</h3>
|
||||
<pre><?php print_r($user); ?></pre>
|
||||
<?php else: ?>
|
||||
<strong><em>You are not Connected.</em></strong>
|
||||
<?php endif ?>
|
||||
</body>
|
||||
</html>
|
||||
21
vendor/codeception/base/tests/data/app/view/form/anchor.php
vendored
Normal file
21
vendor/codeception/base/tests/data/app/view/form/anchor.php
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
<html>
|
||||
<title>TestEd Beta 2.0</title>
|
||||
<body>
|
||||
|
||||
<h1>Welcome to test app!</h1>
|
||||
|
||||
<form action="#a" method="post">
|
||||
<input name="field1" />
|
||||
<input type="submit" value="Hash Form" title="Hash Form Title" />
|
||||
<button type="submit" title="Hash Button Form"></button>
|
||||
</form>
|
||||
|
||||
<a href="#b">Hash Link</a>
|
||||
|
||||
<a href="#c">
|
||||
<input type="submit" value="Hash Button" />
|
||||
</a>
|
||||
|
||||
|
||||
</body>
|
||||
</html>
|
||||
21
vendor/codeception/base/tests/data/app/view/form/bug1467.php
vendored
Normal file
21
vendor/codeception/base/tests/data/app/view/form/bug1467.php
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
<!doctype html>
|
||||
<html>
|
||||
<head><title>hi</title></head>
|
||||
<body>
|
||||
TEST TEST
|
||||
<form name="form1">
|
||||
<label><input type="radio" name="first_test_radio" value="Yes"/>Yes</label>
|
||||
<label><input type="radio" name="first_test_radio" value="No"/>No</label>
|
||||
<br/>
|
||||
<label><input type="radio" name="second_test_radio" value="Yes" />Yes</label>
|
||||
<label><input type="radio" name="second_test_radio" value="No" />No</label>
|
||||
</form>
|
||||
<form name="form2">
|
||||
<label><input type="radio" name="first_test_radio" value="Yes"/>Yes</label>
|
||||
<label><input type="radio" name="first_test_radio" value="No"/>No</label>
|
||||
<br/>
|
||||
<label><input type="radio" name="second_test_radio" value="Yes" />Yes</label>
|
||||
<label><input type="radio" name="second_test_radio" value="No" />No</label>
|
||||
</form>
|
||||
</body>
|
||||
</html>
|
||||
13
vendor/codeception/base/tests/data/app/view/form/bug1535.php
vendored
Normal file
13
vendor/codeception/base/tests/data/app/view/form/bug1535.php
vendored
Normal file
@@ -0,0 +1,13 @@
|
||||
<html>
|
||||
<body>
|
||||
<form action="/form/complex" method="post">
|
||||
<div id="bmessage-topicslinks">
|
||||
<div class="checkbox"><label><input type="checkbox" name="BMessage[topicsLinks][]" value="1"> Label 1</label></div>
|
||||
<div class="checkbox"><label><input type="checkbox" name="BMessage[topicsLinks][]" value="2"> Label 2</label></div>
|
||||
<div class="checkbox"><label><input type="checkbox" name="BMessage[topicsLinks][]" value="3"> Label 3</label></div>
|
||||
<div class="checkbox"><label><input type="checkbox" name="BMessage[topicsLinks][]" value="4"> Label 4</label></div>
|
||||
</div>
|
||||
<input type="submit" value="Submit" />
|
||||
</form>
|
||||
</body>
|
||||
</html>
|
||||
13
vendor/codeception/base/tests/data/app/view/form/bug1585.php
vendored
Normal file
13
vendor/codeception/base/tests/data/app/view/form/bug1585.php
vendored
Normal file
@@ -0,0 +1,13 @@
|
||||
<html>
|
||||
<body>
|
||||
<h1>Hello world</h1>
|
||||
<form action="/form/complex" method="post">
|
||||
<textarea name="captions[]" class="caption"></textarea>
|
||||
<input class="input-quantity row-1" name="items[1][quantity]" type="text" value="1" id="items[1][quantity]">
|
||||
<textarea name="items[1][]" class="caption"></textarea>
|
||||
<input type="text" name="users[]" />
|
||||
<input type="file" name="files[]" />
|
||||
<input type="submit" value="Submit"/>
|
||||
</form>
|
||||
</body>
|
||||
</html>
|
||||
7
vendor/codeception/base/tests/data/app/view/form/bug1598.php
vendored
Normal file
7
vendor/codeception/base/tests/data/app/view/form/bug1598.php
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
<html>
|
||||
<body>
|
||||
<div id="field">
|
||||
12,345
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
10
vendor/codeception/base/tests/data/app/view/form/bug1637.php
vendored
Normal file
10
vendor/codeception/base/tests/data/app/view/form/bug1637.php
vendored
Normal file
@@ -0,0 +1,10 @@
|
||||
<!doctype html>
|
||||
<html>
|
||||
<head><title>hi</title></head>
|
||||
<body>
|
||||
TEST TEST
|
||||
<label><input type="radio" name="first_test_radio" value="Yes"/>Yes</label>
|
||||
<label><input type="radio" name="first_test_radio" value="No"/>No</label>
|
||||
<br/>
|
||||
</body>
|
||||
</html>
|
||||
10
vendor/codeception/base/tests/data/app/view/form/bug2841.php
vendored
Normal file
10
vendor/codeception/base/tests/data/app/view/form/bug2841.php
vendored
Normal file
@@ -0,0 +1,10 @@
|
||||
<!doctype html>
|
||||
<html>
|
||||
<head><title>hi</title></head>
|
||||
<body>
|
||||
<form name="form" action="/form/bug2841" method="post" enctype="multipart/form-data">
|
||||
<input name="in" type="text" id="texty">
|
||||
<button type="submit" name="submit-registration" id="submit-registration" class="submit-registration">CLICKY</button>
|
||||
</form>
|
||||
</body>
|
||||
</html>
|
||||
9
vendor/codeception/base/tests/data/app/view/form/bug2921.php
vendored
Normal file
9
vendor/codeception/base/tests/data/app/view/form/bug2921.php
vendored
Normal file
@@ -0,0 +1,9 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
</head>
|
||||
<body>
|
||||
<textarea id="ta" name="foo" rows="3">bar baz
|
||||
</textarea>
|
||||
</body>
|
||||
</html>
|
||||
15
vendor/codeception/base/tests/data/app/view/form/bug3824.php
vendored
Normal file
15
vendor/codeception/base/tests/data/app/view/form/bug3824.php
vendored
Normal file
@@ -0,0 +1,15 @@
|
||||
<html><body>
|
||||
|
||||
<form method="post">
|
||||
<select name="test">
|
||||
<option value="_none">- None -</option>
|
||||
</select>
|
||||
</form>
|
||||
|
||||
<?php
|
||||
if (isset($_POST['test']) && $_POST['test'] !== '_none') {
|
||||
echo 'ERROR';
|
||||
}
|
||||
?>
|
||||
|
||||
</body></html>
|
||||
4
vendor/codeception/base/tests/data/app/view/form/bug3865.php
vendored
Normal file
4
vendor/codeception/base/tests/data/app/view/form/bug3865.php
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
<html><body>
|
||||
|
||||
<a href="/">222</a>
|
||||
</body></html>
|
||||
14
vendor/codeception/base/tests/data/app/view/form/bug3866.php
vendored
Normal file
14
vendor/codeception/base/tests/data/app/view/form/bug3866.php
vendored
Normal file
@@ -0,0 +1,14 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>grabValueFrom issue</title>
|
||||
</head>
|
||||
<body>
|
||||
<form method="get">
|
||||
<input type="text" name="empty" id="empty">
|
||||
<textarea name="empty_textarea" id="empty_textarea"></textarea>
|
||||
<textarea name="textarea[name][]" id="textarea_with_square_bracket"></textarea>
|
||||
</form>
|
||||
</body>
|
||||
</html>
|
||||
17
vendor/codeception/base/tests/data/app/view/form/bug3953.php
vendored
Normal file
17
vendor/codeception/base/tests/data/app/view/form/bug3953.php
vendored
Normal file
@@ -0,0 +1,17 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>issue #3983</title>
|
||||
</head>
|
||||
<body>
|
||||
<form method="get" action="/form/bug3953">
|
||||
<select name="select_name" id="select_id">
|
||||
<option value="one">first</option>
|
||||
<option value="two">second</option>
|
||||
</select>
|
||||
<input type="text" name="search_name">
|
||||
<button>Submit</button>
|
||||
</form>
|
||||
</body>
|
||||
</html>
|
||||
7
vendor/codeception/base/tests/data/app/view/form/button-not-in-form.php
vendored
Normal file
7
vendor/codeception/base/tests/data/app/view/form/button-not-in-form.php
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
<html>
|
||||
<body>
|
||||
<div>
|
||||
<button>The Button</button>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
8
vendor/codeception/base/tests/data/app/view/form/button.php
vendored
Normal file
8
vendor/codeception/base/tests/data/app/view/form/button.php
vendored
Normal file
@@ -0,0 +1,8 @@
|
||||
<html>
|
||||
<body>
|
||||
<form action="/form/button" method="POST">
|
||||
<input type="hidden" name="text" value="val" />
|
||||
<button type="submit" name="btn0">Submit</button>
|
||||
</form>
|
||||
</body>
|
||||
</html>
|
||||
10
vendor/codeception/base/tests/data/app/view/form/button_in_link.php
vendored
Normal file
10
vendor/codeception/base/tests/data/app/view/form/button_in_link.php
vendored
Normal file
@@ -0,0 +1,10 @@
|
||||
<html>
|
||||
<body>
|
||||
<form action="/form/button" method="POST">
|
||||
<button type="submit" name="btn0">Submit</button>
|
||||
</form>
|
||||
<a href="/info"><input type="submit" value="More Info"></a>
|
||||
|
||||
<a href="/info"><span><input type="submit" value="Span Info"></span></a>
|
||||
</body>
|
||||
</html>
|
||||
10
vendor/codeception/base/tests/data/app/view/form/checkbox.php
vendored
Normal file
10
vendor/codeception/base/tests/data/app/view/form/checkbox.php
vendored
Normal file
@@ -0,0 +1,10 @@
|
||||
<html>
|
||||
<body>
|
||||
<form action="/form/complex" method="POST">
|
||||
<label for="checkin">I Agree</label>
|
||||
<input type="checkbox" id="checkin" name="terms" value="agree" onclick="document.getElementById('notice').innerHTML = 'ticked'" />
|
||||
<input type="submit" value="Submit" />
|
||||
</form>
|
||||
<div id="notice"></div>
|
||||
</body>
|
||||
</html>
|
||||
10
vendor/codeception/base/tests/data/app/view/form/checkbox_array.php
vendored
Normal file
10
vendor/codeception/base/tests/data/app/view/form/checkbox_array.php
vendored
Normal file
@@ -0,0 +1,10 @@
|
||||
<html>
|
||||
<body>
|
||||
<form action="/form/complex" method="POST">
|
||||
<input type="checkbox" id="id1" name="field[]" value="first" />
|
||||
<input type="checkbox" id="id2" name="field[]" value="second" />
|
||||
<input type="checkbox" id="id3" name="field[]" value="third" />
|
||||
<input type="submit" value="Submit" />
|
||||
</form>
|
||||
</body>
|
||||
</html>
|
||||
5
vendor/codeception/base/tests/data/app/view/form/checkbox_default_value.php
vendored
Normal file
5
vendor/codeception/base/tests/data/app/view/form/checkbox_default_value.php
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
<!DOCTYPE html>
|
||||
|
||||
<form>
|
||||
<input type="checkbox" name="checkbox1">
|
||||
</form>
|
||||
38
vendor/codeception/base/tests/data/app/view/form/click.php
vendored
Normal file
38
vendor/codeception/base/tests/data/app/view/form/click.php
vendored
Normal file
@@ -0,0 +1,38 @@
|
||||
<html>
|
||||
<head>
|
||||
<style>
|
||||
body { overflow: hidden; height: 752px; }
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div style="width: 100px;height: 100px;background-color:#99cb84" id="element"></div>
|
||||
<div style="width: 100px;height: 100px;background-color:#aa0077" id="element2"></div>
|
||||
<div id="result"></div>
|
||||
|
||||
|
||||
<script type="text/javascript">
|
||||
var doc = document.getElementById('result');
|
||||
|
||||
var click = function click(event) {
|
||||
doc.textContent =
|
||||
"click, " +
|
||||
"offsetX: " + event.pageX +
|
||||
" - offsetY: " + event.pageY;
|
||||
|
||||
event.preventDefault();
|
||||
}
|
||||
|
||||
var context = function context(event) {
|
||||
doc.textContent =
|
||||
"context, " +
|
||||
"offsetX: " + event.pageX +
|
||||
" - offsetY: " + event.pageY;
|
||||
|
||||
event.preventDefault();
|
||||
}
|
||||
|
||||
document.addEventListener("click", click);
|
||||
document.addEventListener("contextmenu", context);
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
44
vendor/codeception/base/tests/data/app/view/form/complex.php
vendored
Normal file
44
vendor/codeception/base/tests/data/app/view/form/complex.php
vendored
Normal file
@@ -0,0 +1,44 @@
|
||||
<html>
|
||||
<body>
|
||||
<form action="/form/complex" method="POST">
|
||||
|
||||
<input type="hidden" name="action" value="kill_all" />
|
||||
<fieldset disabled="disabled">
|
||||
<input type="text" id="disabled_fieldset" name="disabled_fieldset" value="disabled_fieldset" />
|
||||
<textarea id="disabled_fieldset_textarea" name="disabled_fieldset_textarea"></textarea>
|
||||
<select id="disabled_fieldset_select" name="disabled_fieldset_select">
|
||||
<option value="alpha">Alpha</option>
|
||||
<option value="bravo">Bravo</option>
|
||||
</select>
|
||||
</fieldset>
|
||||
<input type="text" id="disabled_field" name="disabled_field" value="disabled_field" disabled="disabled" />
|
||||
<label for="description">Description</label>
|
||||
<textarea name="description" id="description" cols="30" rows="10"></textarea>
|
||||
|
||||
<label for="name">Name</label>
|
||||
<input type="text" id="name" name="name" value="" />
|
||||
|
||||
<label for="age">Select your age</label>
|
||||
<select name="age" id="age">
|
||||
<option value="child">below 13</option>
|
||||
<option value="teenage">13-21</option>
|
||||
<option value="adult">21-60</option>
|
||||
<option value="oldfag">60-100</option>
|
||||
<option value="dead">100-210</option>
|
||||
</select>
|
||||
|
||||
<select name="no_salutation" id="salutation" disabled="disabled" id="age">
|
||||
<option value="mr" selected="selected">Mr</option>
|
||||
<option value="ms">Mrs</option>
|
||||
</select>
|
||||
|
||||
|
||||
<input type="password" name="password" >
|
||||
<label for="checkin">I Agree</label>
|
||||
<input type="checkbox" id="checkin" name="terms" value="agree" checked="checked" />
|
||||
<input type="submit" value="Submit" />
|
||||
|
||||
<?php print_r($_SERVER); ?>
|
||||
</form>
|
||||
</body>
|
||||
</html>
|
||||
6
vendor/codeception/base/tests/data/app/view/form/div_content_editable.php
vendored
Normal file
6
vendor/codeception/base/tests/data/app/view/form/div_content_editable.php
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
<html>
|
||||
<body>
|
||||
<label for="description">Description</label>
|
||||
<div contenteditable="true" name="description" id="description" cols="30" rows="10">sunrise</div>
|
||||
</body>
|
||||
</html>
|
||||
12
vendor/codeception/base/tests/data/app/view/form/empty.php
vendored
Normal file
12
vendor/codeception/base/tests/data/app/view/form/empty.php
vendored
Normal file
@@ -0,0 +1,12 @@
|
||||
<html>
|
||||
<body>
|
||||
<form action="/form/empty" method="POST">
|
||||
<input type="text" name="text" value="val">
|
||||
</form>
|
||||
|
||||
|
||||
<input type="text" name="empty_input" value="" id="empty_input" />
|
||||
<textarea name="empty_textarea" id="empty_textarea" cols="30" rows="10"></textarea>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
12
vendor/codeception/base/tests/data/app/view/form/empty_fill.php
vendored
Normal file
12
vendor/codeception/base/tests/data/app/view/form/empty_fill.php
vendored
Normal file
@@ -0,0 +1,12 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>Test inserting a submit button</title>
|
||||
</head>
|
||||
<body>
|
||||
<form method="POST" action="/form/emptyFill">
|
||||
<input type="text" name="test" value="" />
|
||||
</form>
|
||||
</body>
|
||||
</html>
|
||||
32
vendor/codeception/base/tests/data/app/view/form/example1.php
vendored
Normal file
32
vendor/codeception/base/tests/data/app/view/form/example1.php
vendored
Normal file
@@ -0,0 +1,32 @@
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
<meta name="language" content="en" />
|
||||
<title>My Web Application - Login</title>
|
||||
</head>
|
||||
<body>
|
||||
<div class="container" id="page">
|
||||
<div class="form">
|
||||
<form id="login-form" action="/form/example1" method="post">
|
||||
<p class="note">Fields with <span class="required">*</span> are required.</p>
|
||||
<div class="row">
|
||||
<label for="LoginForm_username" class="required">Username <span class="required">*</span></label> <input name="LoginForm[username]" id="LoginForm_username" type="text" /> <div class="errorMessage" id="LoginForm_username_em_" style="display:none"></div> </div>
|
||||
|
||||
<div class="row">
|
||||
<label for="LoginForm_password" class="required">Password <span class="required">*</span></label> <input name="LoginForm[password]" id="LoginForm_password" type="password" /> <div class="errorMessage" id="LoginForm_password_em_" style="display:none"></div> <p class="hint">
|
||||
Hint: You may login with <kbd>demo</kbd>/<kbd>demo</kbd> or <kbd>admin</kbd>/<kbd>admin</kbd>.
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div class="row rememberMe">
|
||||
<input id="ytLoginForm_rememberMe" type="hidden" value="0" name="LoginForm[rememberMe]" /><input name="LoginForm[rememberMe]" id="LoginForm_rememberMe" value="1" type="checkbox" /> <label for="LoginForm_rememberMe">Remember me next time</label> <div class="errorMessage" id="LoginForm_rememberMe_em_" style="display:none"></div> </div>
|
||||
|
||||
|
||||
<button type="submit" name="yt0" >Login</button>
|
||||
|
||||
</form></div><!-- form -->
|
||||
</div><!-- content -->
|
||||
</div><!-- page -->
|
||||
</body>
|
||||
</html>
|
||||
11
vendor/codeception/base/tests/data/app/view/form/example10.php
vendored
Normal file
11
vendor/codeception/base/tests/data/app/view/form/example10.php
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head></head>
|
||||
<body>
|
||||
<form action="/form/example10" method="post">
|
||||
<input type="text" id="username" name="username" value="fred">
|
||||
<input type="submit" id="button1" name="button1" value="value1">
|
||||
<input type="submit" id="button2" name="button2" value="value2">
|
||||
</form>
|
||||
</body>
|
||||
</html>
|
||||
19
vendor/codeception/base/tests/data/app/view/form/example11.php
vendored
Normal file
19
vendor/codeception/base/tests/data/app/view/form/example11.php
vendored
Normal file
@@ -0,0 +1,19 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>Welcome!</title>
|
||||
</head>
|
||||
<body>
|
||||
<form method="POST" action="/form/example11">
|
||||
<input type="text" name="username">
|
||||
<input type="text" name="password">
|
||||
<button type="submit" name="submit" value="first">Login</button>
|
||||
<button type="submit" name="submit" value="second">Login</button>
|
||||
<button type="submit" name="submit" value="third">Login</button>
|
||||
<button type="submit" name="submit" value="fourth">Login</button>
|
||||
<button type="submit" name="submit" value="fifth">Login</button>
|
||||
<button type="submit" name="submit" value="sixth">Login</button>
|
||||
</form>
|
||||
</body>
|
||||
</html>
|
||||
13
vendor/codeception/base/tests/data/app/view/form/example12.php
vendored
Normal file
13
vendor/codeception/base/tests/data/app/view/form/example12.php
vendored
Normal file
@@ -0,0 +1,13 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>Test submitting a form with a document-relative path for action</title>
|
||||
</head>
|
||||
<body>
|
||||
<form method="POST" action="example11">
|
||||
<input type="text" name="test" value="" />
|
||||
<input type="submit" name="submit" value="Submit" />
|
||||
</form>
|
||||
</body>
|
||||
</html>
|
||||
11
vendor/codeception/base/tests/data/app/view/form/example13.php
vendored
Normal file
11
vendor/codeception/base/tests/data/app/view/form/example13.php
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
<html>
|
||||
<body>
|
||||
<form action="/form/complex" method="POST" enctype="multipart/form-data">
|
||||
<input type="file" name="foo" />
|
||||
<input type="file" name="foo[bar]" />
|
||||
<input type="file" name="foo[baz]" />
|
||||
<input type="text" name="xxx"/>
|
||||
<input type="submit" name="Submit" />
|
||||
</form>
|
||||
</body>
|
||||
</html>
|
||||
10
vendor/codeception/base/tests/data/app/view/form/example14.php
vendored
Normal file
10
vendor/codeception/base/tests/data/app/view/form/example14.php
vendored
Normal file
@@ -0,0 +1,10 @@
|
||||
<html>
|
||||
<body>
|
||||
<form action="/form/complex" method="POST" enctype="multipart/form-data">
|
||||
<input type="file" name="foo bar" />
|
||||
<input type="file" name="foo.baz" />
|
||||
<input type="text" name="xxx"/>
|
||||
<input type="submit" name="Submit" />
|
||||
</form>
|
||||
</body>
|
||||
</html>
|
||||
23
vendor/codeception/base/tests/data/app/view/form/example15.php
vendored
Normal file
23
vendor/codeception/base/tests/data/app/view/form/example15.php
vendored
Normal file
@@ -0,0 +1,23 @@
|
||||
<html>
|
||||
<title>My Application</title>
|
||||
<body>
|
||||
<form method="POST" action="/form/complex" accept-charset="UTF-8" role="form" class="crud-form big-bottom">
|
||||
<fieldset>
|
||||
<legend>Create New Widget</legend>
|
||||
<div class="form-group">
|
||||
<label for="title">Widget Title</label>
|
||||
<input class="form-control" placeholder="Widget Title" name="title" type="text" id="title">
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="description">Description</label>
|
||||
<textarea class="form-control" placeholder="Description" name="description" cols="50" rows="10" id="description"></textarea>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="price">Price</label>
|
||||
<input class="form-control" placeholder="Price" name="price" type="text" id="price">
|
||||
</div>
|
||||
<input class="btn btn-primary btn-block" type="submit" value="Create">
|
||||
</fieldset>
|
||||
</form>
|
||||
</body>
|
||||
</html>
|
||||
16
vendor/codeception/base/tests/data/app/view/form/example16.php
vendored
Normal file
16
vendor/codeception/base/tests/data/app/view/form/example16.php
vendored
Normal file
@@ -0,0 +1,16 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>Test submitting a form with default radio/checkbox values</title>
|
||||
</head>
|
||||
<body>
|
||||
<form method="POST" action="/form/example16">
|
||||
<input type="text" name="test" value="" />
|
||||
<input type="checkbox" name="checkbox1" value="testing" checked="checked" />
|
||||
<input type="radio" name="radio1" value="to be sent" checked="checked" />
|
||||
<input type="radio" name="radio1" value="not to be sent" />
|
||||
<input type="submit" name="submit" value="Submit" />
|
||||
</form>
|
||||
</body>
|
||||
</html>
|
||||
10
vendor/codeception/base/tests/data/app/view/form/example17.php
vendored
Normal file
10
vendor/codeception/base/tests/data/app/view/form/example17.php
vendored
Normal file
@@ -0,0 +1,10 @@
|
||||
<html>
|
||||
<head>
|
||||
</head>
|
||||
<body>
|
||||
<form id="foo" method="POST" action="/form/example17">
|
||||
<input type="text" value="baz" name="FooBar[bar]">
|
||||
<input type="text" value="mmhm" name="Food[beer][yum][yeah]">
|
||||
</form>
|
||||
</body>
|
||||
</html>
|
||||
60
vendor/codeception/base/tests/data/app/view/form/example18.php
vendored
Normal file
60
vendor/codeception/base/tests/data/app/view/form/example18.php
vendored
Normal file
@@ -0,0 +1,60 @@
|
||||
<html>
|
||||
<head>
|
||||
<style>
|
||||
body{padding:0;margin:0;}
|
||||
.myFloatBar{
|
||||
bottom:0;
|
||||
left:0;
|
||||
width:100%;
|
||||
position:fixed;
|
||||
background-color:#F00;
|
||||
height:500px;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div class="myFloatBar">This bar is over the button that we want to click</div>
|
||||
<p>Some Text</p>
|
||||
<p>Some Text</p>
|
||||
<p>Some Text</p>
|
||||
<p>Some Text</p>
|
||||
<p>Some Text</p>
|
||||
<p>Some Text</p>
|
||||
<p>Some Text</p>
|
||||
<p>Some Text</p>
|
||||
<p>Some Text</p>
|
||||
<p>Some Text</p>
|
||||
<p>Some Text</p>
|
||||
<p>Some Text</p>
|
||||
<p>Some Text</p>
|
||||
<p>Some Text</p>
|
||||
<form action="/form/button" method="POST">
|
||||
<input type="hidden" name="text" value="val" />
|
||||
<button type="submit" name="btn0" id="clickme">Submit</button>
|
||||
</form>
|
||||
<p>Some Text</p>
|
||||
<p>Some Text</p>
|
||||
<p>Some Text</p>
|
||||
<p>Some Text</p>
|
||||
<p>Some Text</p>
|
||||
<p>Some Text</p>
|
||||
<p>Some Text</p>
|
||||
<p>Some Text</p>
|
||||
<p>Some Text</p>
|
||||
<p>Some Text</p>
|
||||
<p>Some Text</p>
|
||||
<p>Some Text</p>
|
||||
<p>Some Text</p>
|
||||
<p>Some Text</p>
|
||||
<p>Some Text</p>
|
||||
<p>Some Text</p>
|
||||
<p>Some Text</p>
|
||||
<p>Some Text</p>
|
||||
<p>Some Text</p>
|
||||
<p>Some Text</p>
|
||||
<p>Some Text</p>
|
||||
<p>Some Text</p>
|
||||
<p>Some Text</p>
|
||||
<p>Some Text</p>
|
||||
</body>
|
||||
</html>
|
||||
33
vendor/codeception/base/tests/data/app/view/form/example2.php
vendored
Normal file
33
vendor/codeception/base/tests/data/app/view/form/example2.php
vendored
Normal file
@@ -0,0 +1,33 @@
|
||||
<html><body>
|
||||
<form class="well loginform" method="post">
|
||||
<label>Username</label>
|
||||
<div class="input-prepend">
|
||||
<span class="add-on"><i class="icon-user"></i></span>
|
||||
<input type="text" name="username" placeholder="Your username …">
|
||||
</div>
|
||||
|
||||
<div class="password">
|
||||
<label>
|
||||
Password
|
||||
<span class="togglepass show"><i class="icon-eye-open"></i> Show</span>
|
||||
<span class="togglepass hide"><i class="icon-eye-close"></i> Hide</span>
|
||||
</label>
|
||||
<div class="input-prepend">
|
||||
<span class="add-on"><i class="icon-key"></i></span>
|
||||
<input type="password" name="password" placeholder="Your password …">
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<br>
|
||||
<p style="margin-top: 0px;" class="login">
|
||||
<button type="submit" class="btn btn-primary" name="action" value="login"><i class="icon-signin"></i> Log on</button>
|
||||
<button type="button" class="btn btn-link forgot" style="float: right;"> I forgot my password…</button>
|
||||
</p>
|
||||
<p style="margin-top: 0px; display: none;" class="reset">
|
||||
<button type="submit" class="btn btn-primary" name="action" value="reset"><i class="icon-envelope"></i> Reset my password</button>
|
||||
<button type="button" class="btn btn-link remembered" style="float: right;"> Back to login</button>
|
||||
</p>
|
||||
|
||||
</form>
|
||||
</body></html>
|
||||
9
vendor/codeception/base/tests/data/app/view/form/example3.php
vendored
Normal file
9
vendor/codeception/base/tests/data/app/view/form/example3.php
vendored
Normal file
@@ -0,0 +1,9 @@
|
||||
<html>
|
||||
<body>
|
||||
|
||||
<form method="post" action="/form/example3?validate=yes">
|
||||
<input type="text" name="user" value="" >
|
||||
</form>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
88
vendor/codeception/base/tests/data/app/view/form/example4.php
vendored
Normal file
88
vendor/codeception/base/tests/data/app/view/form/example4.php
vendored
Normal file
@@ -0,0 +1,88 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="pl">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<title>site</title>
|
||||
|
||||
<link href="http://127.0.0.1:8100/css/bootstrap.min.css" rel="stylesheet">
|
||||
<link href="http://127.0.0.1:8100/css/default.css" rel="stylesheet">
|
||||
|
||||
<script src="http://127.0.0.1:8100/js/jquery.min.js"></script>
|
||||
<script src="http://127.0.0.1:8100/js/bootstrap.min.js"></script>
|
||||
|
||||
<!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
|
||||
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
|
||||
<!--[if lt IE 9]>
|
||||
<script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
|
||||
<script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script>
|
||||
<![endif]-->
|
||||
|
||||
<link rel="shortcut icon" href="http://127.0.0.1:8100/favicon.ico" />
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<nav class="navbar navbar-default navbar-fixed-top" role="navigation">
|
||||
<div class="container">
|
||||
<div class="navbar-header">
|
||||
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#navbar-collapse-menu">
|
||||
<span class="sr-only">Toggle navigation</span>
|
||||
<span class="icon-bar"></span>
|
||||
<span class="icon-bar"></span>
|
||||
<span class="icon-bar"></span>
|
||||
</button>
|
||||
<a class="navbar-brand" title="site" href="http://127.0.0.1:8100"><img src="http://127.0.0.1:8100/img/logo.png"></a>
|
||||
</div>
|
||||
|
||||
<div class="collapse navbar-collapse" id="navbar-collapse-menu">
|
||||
|
||||
<div class="nav navbar-nav navbar-right">
|
||||
<a href="http://127.0.0.1:8100/auth/login"><button type="button" class="btn btn-default navbar-btn pull-right"><span class="glyphicon glyphicon-log-in"></span> Zaloguj się</button></a>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</nav>
|
||||
|
||||
<div class="container">
|
||||
|
||||
|
||||
<div class="row">
|
||||
|
||||
<form method="POST" action="/form/complex" accept-charset="UTF-8" id="register" class="form-width-narrow well" role="form"><input name="_token" type="hidden" value="VsSbDK5vI0LE5rVULAX8Xd3AJ3iOPfKAksmLNxpW"><fieldset>
|
||||
|
||||
<legend>Rejestracja</legend>
|
||||
|
||||
|
||||
<div class="form-group">
|
||||
<label for="email" class="control-label">E-Mail</label> <input class="form-control" required="1" name="email" type="email" id="email"> </div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="password" class="control-label">Hasło</label> <input class="form-control" required="1" name="password" type="password" value="" id="password"> </div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="password_confirmation" class="control-label">Powtórz hasło</label> <input class="form-control" required="1" name="password_confirmation" type="password" value="" id="password_confirmation"> </div>
|
||||
|
||||
<div class="checkbox">
|
||||
<label>
|
||||
<input required="1" name="terms" type="checkbox" value="1"> Akceptuje warunki <a href="http://127.0.0.1:8100/terms">regulaminu</a>.
|
||||
</label>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<button type="submit" class="btn btn-primary"><span class="glyphicon glyphicon-pencil"></span> Utwórz konto</button>
|
||||
</div>
|
||||
</fieldset>
|
||||
|
||||
</form>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
||||
14
vendor/codeception/base/tests/data/app/view/form/example5.php
vendored
Normal file
14
vendor/codeception/base/tests/data/app/view/form/example5.php
vendored
Normal file
@@ -0,0 +1,14 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>Welcome!</title>
|
||||
</head>
|
||||
<body>
|
||||
<form method="get" action="/form/example5">
|
||||
<input type="text" name="username">
|
||||
<input type="text" name="password">
|
||||
<button type="submit" value="Submit">Login</button>
|
||||
</form>
|
||||
</body>
|
||||
</html>
|
||||
6
vendor/codeception/base/tests/data/app/view/form/example6.php
vendored
Normal file
6
vendor/codeception/base/tests/data/app/view/form/example6.php
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
<form action="/form/example6">
|
||||
<input id="radio_preset1" name="frequency" type="radio" value="week" >
|
||||
<input id="radio_preset2" name="frequency" type="radio" value="hour" checked="checked">
|
||||
<input id="radio_preset3" name="frequency" type="radio" value="day">
|
||||
<button type="submit">Submit</button>
|
||||
</form>
|
||||
5
vendor/codeception/base/tests/data/app/view/form/example7.php
vendored
Normal file
5
vendor/codeception/base/tests/data/app/view/form/example7.php
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
<div class="buy">
|
||||
<a href="/" title="Chocolate Bar" class="button rounded shadowed large blue">
|
||||
<span>Buy Chocolate Bar</span>
|
||||
</a>
|
||||
</div>
|
||||
16
vendor/codeception/base/tests/data/app/view/form/example8.php
vendored
Normal file
16
vendor/codeception/base/tests/data/app/view/form/example8.php
vendored
Normal file
@@ -0,0 +1,16 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>Welcome!</title>
|
||||
</head>
|
||||
<body>
|
||||
<form method="POST" action="/form/example5">
|
||||
<input type="text" name="username">
|
||||
<input type="text" name="password">
|
||||
<button type="submit" name="submit" value="first">Login</button>
|
||||
<button type="submit" name="submit" value="second">Login</button>
|
||||
<button type="submit" name="submit" value="third">Login</button>
|
||||
</form>
|
||||
</body>
|
||||
</html>
|
||||
22
vendor/codeception/base/tests/data/app/view/form/example9.php
vendored
Normal file
22
vendor/codeception/base/tests/data/app/view/form/example9.php
vendored
Normal file
@@ -0,0 +1,22 @@
|
||||
<html>
|
||||
<body>
|
||||
<form action="/form/complex" method="post" enctype="multipart/form-data" name="package_csv_form" class="form">
|
||||
<dl>
|
||||
<dd>
|
||||
<label>
|
||||
<span class="label">XLS file</span>
|
||||
<input type="hidden" name="MAX_FILE_SIZE" value="2097152" id="MAX_FILE_SIZE">
|
||||
<input type="file" name="xls_file" id="xls_file">
|
||||
</label>
|
||||
</dd>
|
||||
</dl>
|
||||
<dl>
|
||||
<dd class="last">
|
||||
<input type="hidden" name="form_name" value="package_csv_form" id="form_name">
|
||||
<input type="submit" name="submit" id="submit" value="Upload packages" class="submit">
|
||||
<a href="#" class="cancel_link">Cancel</a>
|
||||
</dd>
|
||||
</dl>
|
||||
</form>
|
||||
</body>
|
||||
</html>
|
||||
15
vendor/codeception/base/tests/data/app/view/form/field.php
vendored
Normal file
15
vendor/codeception/base/tests/data/app/view/form/field.php
vendored
Normal file
@@ -0,0 +1,15 @@
|
||||
<html>
|
||||
<body>
|
||||
<form action="/form/complex" method="POST">
|
||||
<label for="name">Name</label>
|
||||
<label>
|
||||
<b>Other label</b>
|
||||
<div>
|
||||
<input name="othername">
|
||||
</div>
|
||||
</label>
|
||||
<input type="text" id="name" name="name" value="OLD_VALUE" />
|
||||
<input type="submit" value="Submit" />
|
||||
</form>
|
||||
</body>
|
||||
</html>
|
||||
58
vendor/codeception/base/tests/data/app/view/form/field_values.php
vendored
Normal file
58
vendor/codeception/base/tests/data/app/view/form/field_values.php
vendored
Normal file
@@ -0,0 +1,58 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>Tests for seeInField</title>
|
||||
</head>
|
||||
<body>
|
||||
<form method="POST" action="/form/complex">
|
||||
<input type="checkbox" name="checkbox[]" value="not seen one">
|
||||
<input type="checkbox" name="checkbox[]" value="see test one" checked>
|
||||
<input type="checkbox" name="checkbox[]" value="not seen two">
|
||||
<input type="checkbox" name="checkbox[]" value="see test two" checked>
|
||||
<input type="checkbox" name="checkbox[]" value="not seen three">
|
||||
<input type="checkbox" name="checkbox[]" value="see test three" checked>
|
||||
|
||||
<input type="radio" name="radio1" value="not seen one">
|
||||
<input type="radio" name="radio1" value="see test one" checked>
|
||||
<input type="radio" name="radio1" value="not seen two">
|
||||
<input type="radio" name="radio1" value="not seen three">
|
||||
|
||||
<input type="checkbox" name="checkbox1" value="Boolean Test CB One" checked>
|
||||
<input type="checkbox" name="checkbox2" value="Boolean Test CB Two">
|
||||
|
||||
<input type="radio" name="radio2" value="Boolean Test RD 1">
|
||||
<input type="radio" name="radio2" value="Boolean Test RD 2" checked>
|
||||
<input type="radio" name="radio2" value="Boolean Test RD 3">
|
||||
|
||||
<input type="radio" name="radio3" value="Boolean Test RD 1">
|
||||
<input type="radio" name="radio3" value="Boolean Test RD 2">
|
||||
<input type="radio" name="radio3" value="Boolean Test RD 3">
|
||||
|
||||
<select name="select1">
|
||||
<option value="not seen one">Not selected</option>
|
||||
<option value="see test one" selected>Selected</option>
|
||||
<option value="not seen two">Not selected</option>
|
||||
<option value="not seen three">Not selected</option>
|
||||
</select>
|
||||
|
||||
<select name="select2" multiple>
|
||||
<option value="not seen one">Not selected</option>
|
||||
<option value="see test one" selected>Selected</option>
|
||||
<option value="not seen two">Not selected</option>
|
||||
<option value="see test two" selected>Selected</option>
|
||||
<option value="not seen three">Not selected</option>
|
||||
<option value="see test three" selected>Selected</option>
|
||||
</select>
|
||||
|
||||
<select name="select3">
|
||||
<option value=""></option>
|
||||
<option value="not seen one">Nothing selected</option>
|
||||
<option value="not seen two">Not selected</option>
|
||||
<option value="not seen three">Not selected</option>
|
||||
</select>
|
||||
|
||||
<input type="submit" name="submit" value="Submit" />
|
||||
</form>
|
||||
</body>
|
||||
</html>
|
||||
9
vendor/codeception/base/tests/data/app/view/form/file.php
vendored
Normal file
9
vendor/codeception/base/tests/data/app/view/form/file.php
vendored
Normal file
@@ -0,0 +1,9 @@
|
||||
<html>
|
||||
<body>
|
||||
<form action="/form/complex" method="POST" enctype="multipart/form-data">
|
||||
<label for="avatar">Avatar</label>
|
||||
<input type="file" id="avatar" name="avatar" />
|
||||
<input type="submit" value="Submit" />
|
||||
</form>
|
||||
</body>
|
||||
</html>
|
||||
16
vendor/codeception/base/tests/data/app/view/form/form_with_buttons.php
vendored
Normal file
16
vendor/codeception/base/tests/data/app/view/form/form_with_buttons.php
vendored
Normal file
@@ -0,0 +1,16 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>Welcome!</title>
|
||||
</head>
|
||||
<body>
|
||||
<form method="POST" action="/form/form_with_buttons">
|
||||
<input type="text" name="test">
|
||||
<button type="button" name="button1" value="first">A Button</button>
|
||||
<input type="button" name="button2" value="second">
|
||||
<input type="submit" name="button3" value="third">
|
||||
<button type="submit" name="button4" value="fourth">A Submit Button</button>
|
||||
</form>
|
||||
</body>
|
||||
</html>
|
||||
8
vendor/codeception/base/tests/data/app/view/form/hidden.php
vendored
Normal file
8
vendor/codeception/base/tests/data/app/view/form/hidden.php
vendored
Normal file
@@ -0,0 +1,8 @@
|
||||
<html>
|
||||
<body>
|
||||
<form action="/form/complex" method="POST">
|
||||
<input type="hidden" id="action" name="action" value="kill_people" />
|
||||
<input type="submit" value="Submit" />
|
||||
</form>
|
||||
</body>
|
||||
</html>
|
||||
8
vendor/codeception/base/tests/data/app/view/form/image.php
vendored
Normal file
8
vendor/codeception/base/tests/data/app/view/form/image.php
vendored
Normal file
@@ -0,0 +1,8 @@
|
||||
<html>
|
||||
<body>
|
||||
<form action="/form/image" method="POST">
|
||||
<input type="hidden" name="text" value="val" />
|
||||
<input type="image" src="button.gif" alt="Submit" />
|
||||
</form>
|
||||
</body>
|
||||
</html>
|
||||
14
vendor/codeception/base/tests/data/app/view/form/index.php
vendored
Normal file
14
vendor/codeception/base/tests/data/app/view/form/index.php
vendored
Normal file
@@ -0,0 +1,14 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>Test submitting a form with a document-relative path for action</title>
|
||||
</head>
|
||||
<body>
|
||||
Link: <a href="example11">Doc-Relative Link</a>
|
||||
<form method="POST" action="example11">
|
||||
<input type="text" name="test" value="" />
|
||||
<input type="submit" name="submit" value="Submit" />
|
||||
</form>
|
||||
</body>
|
||||
</html>
|
||||
10
vendor/codeception/base/tests/data/app/view/form/multiple_matches.php
vendored
Normal file
10
vendor/codeception/base/tests/data/app/view/form/multiple_matches.php
vendored
Normal file
@@ -0,0 +1,10 @@
|
||||
<html>
|
||||
<body>
|
||||
|
||||
<div class="link">Not Clickable</div>
|
||||
<a href="/info" class="link">Clickable</a>
|
||||
|
||||
<div>Press Me!</div>
|
||||
<a href="/info">Press Me!</a>
|
||||
</body>
|
||||
</html>
|
||||
40
vendor/codeception/base/tests/data/app/view/form/names-sq-brackets.php
vendored
Normal file
40
vendor/codeception/base/tests/data/app/view/form/names-sq-brackets.php
vendored
Normal file
@@ -0,0 +1,40 @@
|
||||
<html>
|
||||
<head><title>Daison tests</title>
|
||||
</head>
|
||||
<body>
|
||||
<form>
|
||||
<input type="text" name="input_text">
|
||||
<input type="text" name="input[text][]">
|
||||
|
||||
<textarea name="textarea_name"></textarea>
|
||||
<textarea name="textarea[name][]"></textarea>
|
||||
|
||||
<input type="radio" name="input_radio_name" value="1">
|
||||
<input type="radio" name="input_radio_name" value="2">
|
||||
|
||||
<input type="radio" name="input[radio][name][]" value="1">
|
||||
<input type="radio" name="input[radio][name][]" value="2">
|
||||
|
||||
<input type="checkbox" name="input_checkbox_name" value="1">
|
||||
<input type="checkbox" name="input_checkbox_name" value="2">
|
||||
|
||||
<input type="checkbox" name="input[checkbox][name][]" value="1">
|
||||
<input type="checkbox" name="input[checkbox][name][]" value="2">
|
||||
|
||||
<select name="select_name">
|
||||
<option value="1">Select 1</option>
|
||||
<option value="2">Select 2</option>
|
||||
<option value="3">Select 3</option>
|
||||
<option value="4">Select 4</option>
|
||||
<option value="5">Select 5</option>
|
||||
</select>
|
||||
<select name="select[name][]">
|
||||
<option value="1">Select 1</option>
|
||||
<option value="2">Select 2</option>
|
||||
<option value="3">Select 3</option>
|
||||
<option value="4">Select 4</option>
|
||||
<option value="5">Select 5</option>
|
||||
</select>
|
||||
</form>
|
||||
</body>
|
||||
</html>
|
||||
10
vendor/codeception/base/tests/data/app/view/form/password_argument.php
vendored
Normal file
10
vendor/codeception/base/tests/data/app/view/form/password_argument.php
vendored
Normal file
@@ -0,0 +1,10 @@
|
||||
<!DOCTYPE html>
|
||||
<html xmlns="http://www.w3.org/1999/html">
|
||||
<head></head>
|
||||
<body>
|
||||
<form action="/form/password_argument" method="post">
|
||||
<input type="password" id="password" name="password">
|
||||
<button type="submit">Submit</button>
|
||||
</form>
|
||||
</body>
|
||||
</html>
|
||||
34
vendor/codeception/base/tests/data/app/view/form/popup.php
vendored
Normal file
34
vendor/codeception/base/tests/data/app/view/form/popup.php
vendored
Normal file
@@ -0,0 +1,34 @@
|
||||
<html>
|
||||
<body>
|
||||
|
||||
<h1>Watch our popups</h1>
|
||||
|
||||
<script type="text/javascript">
|
||||
function showConfirm() {
|
||||
var res = confirm("Are you sure?");
|
||||
var el = document.getElementById('result');
|
||||
if (res) {
|
||||
el.innerHTML = 'Yes';
|
||||
} else {
|
||||
el.innerHTML = 'No';
|
||||
}
|
||||
}
|
||||
|
||||
function showAlert()
|
||||
{
|
||||
alert("Really?");
|
||||
}
|
||||
</script>
|
||||
|
||||
<div>
|
||||
<button onclick="showConfirm()">Confirm</button>
|
||||
<button onclick="showAlert()">Alert</button>
|
||||
|
||||
|
||||
<div id="result"></div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
</body>
|
||||
</html>
|
||||
10
vendor/codeception/base/tests/data/app/view/form/radio.php
vendored
Normal file
10
vendor/codeception/base/tests/data/app/view/form/radio.php
vendored
Normal file
@@ -0,0 +1,10 @@
|
||||
<html>
|
||||
<body>
|
||||
<form action="/form/radio" method="POST">
|
||||
<input type="radio" id="agree" name="terms" value="agree" />
|
||||
<label for="disagree">Get Off</label>
|
||||
<input type="radio" id="disagree" name="terms" value="disagree" />
|
||||
<input type="submit" value="Submit" />
|
||||
</form>
|
||||
</body>
|
||||
</html>
|
||||
14
vendor/codeception/base/tests/data/app/view/form/relative_siteroot.php
vendored
Normal file
14
vendor/codeception/base/tests/data/app/view/form/relative_siteroot.php
vendored
Normal file
@@ -0,0 +1,14 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>Test submitting a form with a relative site-root URL as its action, and a configured 'Url' with a sub-dir</title>
|
||||
</head>
|
||||
<body>
|
||||
<a href="/form/relative_siteroot">Click me</a>
|
||||
<form method="POST" action="/form/relative_siteroot">
|
||||
<input type="text" name="test" value="" />
|
||||
<input type="submit" name="submit" value="Submit" />
|
||||
</form>
|
||||
</body>
|
||||
</html>
|
||||
15
vendor/codeception/base/tests/data/app/view/form/select.php
vendored
Normal file
15
vendor/codeception/base/tests/data/app/view/form/select.php
vendored
Normal file
@@ -0,0 +1,15 @@
|
||||
<html>
|
||||
<body>
|
||||
<form action="/form/complex" method="POST">
|
||||
<label for="age">Select your age</label>
|
||||
<select name="age" id="age">
|
||||
<option value="child">below 13</option>
|
||||
<option value="teenage">13-21</option>
|
||||
<option value="adult">21-60</option>
|
||||
<option value="oldfag" selected="selected">60-100</option>
|
||||
<option value="dead">100-210</option>
|
||||
</select>
|
||||
<input type="submit" value="Submit" />
|
||||
</form>
|
||||
</body>
|
||||
</html>
|
||||
15
vendor/codeception/base/tests/data/app/view/form/select_multiple.php
vendored
Normal file
15
vendor/codeception/base/tests/data/app/view/form/select_multiple.php
vendored
Normal file
@@ -0,0 +1,15 @@
|
||||
<html>
|
||||
<body>
|
||||
<form action="/form/complex" method="POST">
|
||||
<label for="like">What do you like the most?</label>
|
||||
<select name="like[]" id="like" multiple="multiple">
|
||||
<option value="eat">Eat and Drink</option>
|
||||
<option value="play">Play Video Games</option>
|
||||
<option value="adult">Have Sex</option>
|
||||
<option value="drugs">Take some drugs</option>
|
||||
<option value="code">Fuck that shit, just CODE!</option>
|
||||
</select>
|
||||
<input type="submit" value="Submit" />
|
||||
</form>
|
||||
</body>
|
||||
</html>
|
||||
15
vendor/codeception/base/tests/data/app/view/form/select_second.php
vendored
Normal file
15
vendor/codeception/base/tests/data/app/view/form/select_second.php
vendored
Normal file
@@ -0,0 +1,15 @@
|
||||
<html>
|
||||
<body>
|
||||
<form action="/form/complex" method="POST">
|
||||
<select id="select1">
|
||||
<option value="select1_value1">Value1</option>
|
||||
<option value="select1_value2">Value2</option>
|
||||
</select>
|
||||
<select id="select2">
|
||||
<option value="select2_value1">Value1</option>
|
||||
<option value="white" selected> no_whitespaces </option>
|
||||
</select>
|
||||
<input type="submit" value="Submit" />
|
||||
</form>
|
||||
</body>
|
||||
</html>
|
||||
12
vendor/codeception/base/tests/data/app/view/form/select_selectors.php
vendored
Normal file
12
vendor/codeception/base/tests/data/app/view/form/select_selectors.php
vendored
Normal file
@@ -0,0 +1,12 @@
|
||||
<html>
|
||||
<body>
|
||||
<form action="/form/complex" method="POST">
|
||||
<label for="age">Select your age</label>
|
||||
<select name="age" id="age">
|
||||
<option value="20">21</option>
|
||||
<option value="21">20</option>
|
||||
</select>
|
||||
<input type="submit" value="Submit" />
|
||||
</form>
|
||||
</body>
|
||||
</html>
|
||||
21
vendor/codeception/base/tests/data/app/view/form/select_two_submits.php
vendored
Normal file
21
vendor/codeception/base/tests/data/app/view/form/select_two_submits.php
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>Welcome!</title>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
||||
<form method="POST" action="/form/select_two_submits">
|
||||
<button type="submit">Save</button>
|
||||
<label for="sandwich_select">What kind of sandwich would you like?</label>
|
||||
<select id="sandwich_select" name="sandwich_select">
|
||||
<option value="1">Just a sandwich</option>
|
||||
<option value="2">A better sandwich</option>
|
||||
</select>
|
||||
<button type="submit">Save</button>
|
||||
</form>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
39
vendor/codeception/base/tests/data/app/view/form/strict_selectors.php
vendored
Normal file
39
vendor/codeception/base/tests/data/app/view/form/strict_selectors.php
vendored
Normal file
@@ -0,0 +1,39 @@
|
||||
<html>
|
||||
<body>
|
||||
<form action="/form/complex" method="POST">
|
||||
|
||||
<input type="hidden" name="action" value="kill_all" />
|
||||
<fieldset disabled="disabled">
|
||||
<input type="text" id="disabled_fieldset" name="disabled_fieldset" value="disabled_fieldset" />
|
||||
</fieldset>
|
||||
<input type="text" id="disabled_field" name="disabled_field" value="disabled_field" disabled="disabled" />
|
||||
<label for="description">Description</label>
|
||||
<textarea name="description" id="description" cols="30" rows="10"></textarea>
|
||||
|
||||
<label for="name">Name</label>
|
||||
<input type="text" id="name" name="name" value="" />
|
||||
|
||||
<label for="age">Select your age</label>
|
||||
<select name="age" id="age">
|
||||
<option value="child">below 13</option>
|
||||
<option value="teenage">13-21</option>
|
||||
<option value="adult">21-60</option>
|
||||
<option value="oldfag">60-100</option>
|
||||
<option value="dead">100-210</option>
|
||||
</select>
|
||||
|
||||
<select name="no_salutation" id="salutation" disabled="disabled" id="age">
|
||||
<option value="mr" selected="selected">Mr</option>
|
||||
<option value="ms">Mrs</option>
|
||||
</select>
|
||||
|
||||
|
||||
<input type="password" name="password" >
|
||||
<label for="checkin">I Agree</label>
|
||||
<input type="checkbox" id="checkin" name="terms" value="agree" checked="checked" />
|
||||
<input type="submit" value="Submit" id="submit_button" name="submit_button_name" class="button" />
|
||||
|
||||
<?php print_r($_SERVER); ?>
|
||||
</form>
|
||||
</body>
|
||||
</html>
|
||||
17
vendor/codeception/base/tests/data/app/view/form/submit_adjacentforms.php
vendored
Normal file
17
vendor/codeception/base/tests/data/app/view/form/submit_adjacentforms.php
vendored
Normal file
@@ -0,0 +1,17 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>Testing submitForm with an adjacent form</title>
|
||||
</head>
|
||||
<body>
|
||||
<form id="form-1" method="POST" action="/form/complex">
|
||||
<input type="text" name="first-field" value="Ptitsa" />
|
||||
<input id="submit1" type="submit" value="submit" />
|
||||
</form>
|
||||
<form id="form-2" method="POST" action="/form/complex">
|
||||
<input type="text" name="second-field" value="Killgore Trout" />
|
||||
<input type="submit" id="submit2" type="submit" value="submit" />
|
||||
</form>
|
||||
</body>
|
||||
</html>
|
||||
13
vendor/codeception/base/tests/data/app/view/form/submitform_ampersands.php
vendored
Normal file
13
vendor/codeception/base/tests/data/app/view/form/submitform_ampersands.php
vendored
Normal file
@@ -0,0 +1,13 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>Testing submitForm with field values and ampersand</title>
|
||||
</head>
|
||||
<body>
|
||||
<form method="POST" action="/form/submitform_ampersands">
|
||||
<input type="text" name="test" value="this & that" />
|
||||
<input type="submit" name="submit" value="Submit" />
|
||||
</form>
|
||||
</body>
|
||||
</html>
|
||||
23
vendor/codeception/base/tests/data/app/view/form/submitform_multiple.php
vendored
Normal file
23
vendor/codeception/base/tests/data/app/view/form/submitform_multiple.php
vendored
Normal file
@@ -0,0 +1,23 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>Testing submitForm with select multiple</title>
|
||||
</head>
|
||||
<body>
|
||||
<form method="POST" action="/form/complex">
|
||||
<select name="select[]" multiple>
|
||||
<!-- a comment node here -->
|
||||
<optgroup label="first part" disabled>
|
||||
<option value="not seen one">Not selected</option>
|
||||
<option value="not seen two" selected>Selected</option>
|
||||
</optgroup>
|
||||
<option value="not seen three" selected disabled>Not selected</option>
|
||||
<option value="see test one" selected>Selected</option>
|
||||
<option value="not seen four">Not selected</option>
|
||||
<option value="see test two" selected>Selected</option>
|
||||
</select>
|
||||
<input type="submit" name="submit" value="Submit" />
|
||||
</form>
|
||||
</body>
|
||||
</html>
|
||||
11
vendor/codeception/base/tests/data/app/view/form/textarea.php
vendored
Normal file
11
vendor/codeception/base/tests/data/app/view/form/textarea.php
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
<html>
|
||||
<body>
|
||||
<form action="/form/complex" method="POST">
|
||||
<label for="description">Description</label>
|
||||
<textarea name="description" id="description" cols="30" rows="10">sunrise</textarea>
|
||||
<textarea name="whitespaces" id="whitespaces" cols="30" rows="10">
|
||||
no_whitespaces </textarea>
|
||||
<input type="submit" value="Submit" />
|
||||
</form>
|
||||
</body>
|
||||
</html>
|
||||
23
vendor/codeception/base/tests/data/app/view/form/timeout.php
vendored
Normal file
23
vendor/codeception/base/tests/data/app/view/form/timeout.php
vendored
Normal file
@@ -0,0 +1,23 @@
|
||||
<html>
|
||||
<body>
|
||||
|
||||
<p>Wait for button!</p>
|
||||
|
||||
<div id="el">
|
||||
|
||||
</div>
|
||||
|
||||
<div id="text"></div>
|
||||
|
||||
<script>
|
||||
function writeText() {
|
||||
document.getElementById('text').innerHTML = 'Hello!';
|
||||
}
|
||||
|
||||
setTimeout(function () {
|
||||
document.getElementById('el').innerHTML = '<button id="btn" onclick="writeText()">Click</button>';
|
||||
}, 3000);
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
<?php
|
||||
17
vendor/codeception/base/tests/data/app/view/form/unchecked.php
vendored
Normal file
17
vendor/codeception/base/tests/data/app/view/form/unchecked.php
vendored
Normal file
@@ -0,0 +1,17 @@
|
||||
<html>
|
||||
<body>
|
||||
<form action="/form/unchecked">
|
||||
<input type="hidden" name="data" value="0" />
|
||||
<input type="checkbox" id="checkbox" name="data" checked="checked" />
|
||||
<input type="submit" value="submit" id="submit" />
|
||||
</form>
|
||||
|
||||
<div id="notice">
|
||||
<?php
|
||||
if (isset($_GET['data'])) {
|
||||
echo $_GET['data'] ? 1 : 0;
|
||||
}
|
||||
?>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
13
vendor/codeception/base/tests/data/app/view/iframe.php
vendored
Normal file
13
vendor/codeception/base/tests/data/app/view/iframe.php
vendored
Normal file
@@ -0,0 +1,13 @@
|
||||
<!DOCTYPE HTML>
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<h1>Iframe test</h1>
|
||||
|
||||
<iframe name="content" src="info" />
|
||||
|
||||
</body>
|
||||
</html>
|
||||
42
vendor/codeception/base/tests/data/app/view/index.php
vendored
Normal file
42
vendor/codeception/base/tests/data/app/view/index.php
vendored
Normal file
@@ -0,0 +1,42 @@
|
||||
<html>
|
||||
<title>TestEd Beta 2.0</title>
|
||||
<body>
|
||||
|
||||
<h1>Welcome to test app!</h1>
|
||||
|
||||
<div class="notice"><?php if (isset($notice)) echo $notice; ?></div>
|
||||
|
||||
<p>
|
||||
<a href="/info" id="link">More info</a>
|
||||
</p>
|
||||
|
||||
|
||||
<div id="area1">
|
||||
<a href="/form/file"> Test Link </a>
|
||||
</div>
|
||||
<div id="area2">
|
||||
<a href="/form/hidden">Test</a>
|
||||
</div>
|
||||
<div id="area3">
|
||||
<a href="info">Document-Relative Link</a>
|
||||
</div>
|
||||
|
||||
<div id="area4">
|
||||
Some text
|
||||
<span>with formatting</span>
|
||||
<div class="someclass"> on separate
|
||||
<span>lines</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<a href="/info" title="Link Title">Link Text</a>
|
||||
|
||||
|
||||
A wise man said: "debug!"
|
||||
|
||||
Please don't provide us any personal information.
|
||||
|
||||
<?php print_r($_POST); ?>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
57
vendor/codeception/base/tests/data/app/view/info.php
vendored
Normal file
57
vendor/codeception/base/tests/data/app/view/info.php
vendored
Normal file
@@ -0,0 +1,57 @@
|
||||
<!DOCTYPE HTML>
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<h1>Information</h1>
|
||||
|
||||
<p>Lots of valuable data here
|
||||
|
||||
<a href="/" id="back"><img src="blank.gif" alt="Back"/></a>
|
||||
</p>
|
||||
|
||||
<div class="notice"><?php if (isset($notice)) echo $notice; ?></div>
|
||||
|
||||
<h3>Don't do that at home!</h3>
|
||||
|
||||
<p>Is that interesting?</p>
|
||||
|
||||
<form action="/" method="post">
|
||||
<label for="checkbox">Checked</label>
|
||||
<input type="checkbox" name="interesting" value="1" id="checkbox" checked="checked"/>
|
||||
<input type="text" name="rus" value="Верно"/>
|
||||
<input type="submit"/>
|
||||
</form>
|
||||
|
||||
<p>Текст на русском</p>
|
||||
<a href="/">Ссылочка</a>
|
||||
<a href="/">Franšízy - pobočky</a>
|
||||
<a href="/cookies">Link 3</a>
|
||||
|
||||
<a href="/login" class="sign">Sign in!</a>
|
||||
|
||||
<div>Kill & Destroy</div>
|
||||
|
||||
<div style="display: none" class="hidden">
|
||||
Invisible text
|
||||
</div>
|
||||
|
||||
<div id="grab-multiple">
|
||||
<a id="first-link">First</a>
|
||||
<a id="second-link">Second</a>
|
||||
<a id="third-link">Third</a>
|
||||
</div>
|
||||
|
||||
<script>
|
||||
var a = 2;
|
||||
var b = 3;
|
||||
if (a <= b) {
|
||||
console.log('a is less than b!');
|
||||
}
|
||||
</script>
|
||||
<p>Text behind JS comparision</p>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
18
vendor/codeception/base/tests/data/app/view/jserroronload.php
vendored
Normal file
18
vendor/codeception/base/tests/data/app/view/jserroronload.php
vendored
Normal file
@@ -0,0 +1,18 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>Page with JavaScript errors on load</title>
|
||||
<script>
|
||||
function loadError() {
|
||||
var xx = document.propertyThatDoesNotExist.xyz;
|
||||
}
|
||||
</script>
|
||||
</head>
|
||||
<body onload="loadError()">
|
||||
<p>
|
||||
This page has a JavaScript error in the onload event.
|
||||
This is often a problem to using normal Javascript injection
|
||||
techniques.
|
||||
</p>
|
||||
</body>
|
||||
</html>
|
||||
45
vendor/codeception/base/tests/data/app/view/login.php
vendored
Normal file
45
vendor/codeception/base/tests/data/app/view/login.php
vendored
Normal file
@@ -0,0 +1,45 @@
|
||||
<html>
|
||||
<body>
|
||||
|
||||
<form id="user_form_login" enctype="application/x-www-form-urlencoded" class="global_form_box" action="/login" method="post">
|
||||
<div>
|
||||
<div>
|
||||
<div class="form-elements">
|
||||
<div id="email-wrapper" class="form-wrapper">
|
||||
<div id="email-label" class="form-label"><label for="email" class="required">Email Address</label></div>
|
||||
<div id="email-element" class="form-element">
|
||||
<input type="email" name="email" id="email" value="" tabindex="1" autofocus="autofocus" class="text">
|
||||
</div>
|
||||
</div>
|
||||
<div id="password-wrapper" class="form-wrapper">
|
||||
<div id="password-label" class="form-label"><label for="password" class="required">Password</label></div>
|
||||
<div id="password-element" class="form-element">
|
||||
<input type="password" name="password" id="password" value="" tabindex="2">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-wrapper" id="buttons-wrapper">
|
||||
<fieldset id="fieldset-buttons">
|
||||
<div id="submit-wrapper" class="form-wrapper">
|
||||
<div id="submit-label" class="form-label"> </div>
|
||||
<div id="submit-element" class="form-element">
|
||||
<button name="submit" id="submit" type="submit" tabindex="3">Sign In</button>
|
||||
</div>
|
||||
</div>
|
||||
<div id="remember-wrapper" class="form-wrapper">
|
||||
<div class="form-label" id="remember-label"> </div>
|
||||
<div id="remember-element" class="form-element">
|
||||
<input type="hidden" name="remember" value="">
|
||||
<input type="checkbox" name="remember" id="remember" value="1" tabindex="4">
|
||||
<label for="remember" class="optional">Remember Me</label>
|
||||
</div>
|
||||
</div>
|
||||
</fieldset>
|
||||
</div>
|
||||
<input type="hidden" name="return_url" value="" id="return_url">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
13
vendor/codeception/base/tests/data/app/view/minimal.php
vendored
Normal file
13
vendor/codeception/base/tests/data/app/view/minimal.php
vendored
Normal file
@@ -0,0 +1,13 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>
|
||||
Minimal page
|
||||
</title>
|
||||
</head>
|
||||
<body>
|
||||
<h1>
|
||||
Minimal page
|
||||
</h1>
|
||||
</body>
|
||||
</html>
|
||||
8
vendor/codeception/base/tests/data/app/view/redirect2.php
vendored
Normal file
8
vendor/codeception/base/tests/data/app/view/redirect2.php
vendored
Normal file
@@ -0,0 +1,8 @@
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="refresh" content="0; url=http://localhost:8000/info" />
|
||||
</head>
|
||||
<body>
|
||||
<h1>Redirecting...</h1>
|
||||
</body>
|
||||
</html>
|
||||
8
vendor/codeception/base/tests/data/app/view/redirect_interval.php
vendored
Normal file
8
vendor/codeception/base/tests/data/app/view/redirect_interval.php
vendored
Normal file
@@ -0,0 +1,8 @@
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="refresh" content="1800; url=http://localhost:8000/info" />
|
||||
</head>
|
||||
<body>
|
||||
<h1>Redirecting in 1800 seconds</h1>
|
||||
</body>
|
||||
</html>
|
||||
8
vendor/codeception/base/tests/data/app/view/redirect_meta_refresh.php
vendored
Normal file
8
vendor/codeception/base/tests/data/app/view/redirect_meta_refresh.php
vendored
Normal file
@@ -0,0 +1,8 @@
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="refresh" content="9; url=/info" />
|
||||
</head>
|
||||
<body>
|
||||
<h1>Meta redirect</h1>
|
||||
</body>
|
||||
</html>
|
||||
9
vendor/codeception/base/tests/data/app/view/redirect_params.php
vendored
Normal file
9
vendor/codeception/base/tests/data/app/view/redirect_params.php
vendored
Normal file
@@ -0,0 +1,9 @@
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="refresh" content="0; url=http://localhost:8000/search?one=1&two=2" />
|
||||
</head>
|
||||
<body>
|
||||
<h1>Redirecting...</h1>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
14
vendor/codeception/base/tests/data/app/view/register.php
vendored
Normal file
14
vendor/codeception/base/tests/data/app/view/register.php
vendored
Normal file
@@ -0,0 +1,14 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<base href="http://127.0.0.1:8000">
|
||||
<meta charset="utf-8">
|
||||
<title>Test submitting a form with a relative URL without a leading slash as its action from a URI in the root directory</title>
|
||||
</head>
|
||||
<body>
|
||||
<form method="post" action="register">
|
||||
<input type="text" name="test" value="" />
|
||||
<input type="submit" name="submit" value="Submit" />
|
||||
</form>
|
||||
</body>
|
||||
</html>
|
||||
18
vendor/codeception/base/tests/data/app/view/search.php
vendored
Normal file
18
vendor/codeception/base/tests/data/app/view/search.php
vendored
Normal file
@@ -0,0 +1,18 @@
|
||||
<html>
|
||||
<head>
|
||||
|
||||
</head>
|
||||
<body>
|
||||
<div id="searchInputHeader">
|
||||
|
||||
<?php if (isset($result)): echo $result; endif; ?>
|
||||
<form action="/search" method="get" target="_self" name="searchInputHeaderForm">
|
||||
<input
|
||||
type="text"
|
||||
name="searchQuery"
|
||||
value="Input" />
|
||||
</form>
|
||||
<div id="searchInputHeaderSubmit" onclick="searchInputHeaderForm.submit()"></div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user