Browse Source

Adding test pages for integration tests

Jonny Wenmoth 11 years ago
parent
commit
ae813b1c76

BIN
images/capture-test.jpg


+ 19 - 0
tests/test-capture.html

@@ -0,0 +1,19 @@
+<!DOCTYPE html>
+<html>
+
+  <head>
+    <meta charset='utf-8' />
+    <meta http-equiv="X-UA-Compatible" content="chrome=1" />
+    <meta name="description" content="php-phantomjs : Default test page" />
+        
+    <title>php-phantomjs - Capture test page</title>
+  </head>
+
+  <body>
+
+      <h1>PHANTOMJS_CAPTURE_TEST</h1>
+      
+      <img src="/images/capture-test.jpg" alt="Capture test image" width="800" height="600">
+
+  </body>
+</html>

+ 21 - 0
tests/test-console-error.html

@@ -0,0 +1,21 @@
+<!DOCTYPE html>
+<html>
+
+  <head>
+    <meta charset='utf-8' />
+    <meta http-equiv="X-UA-Compatible" content="chrome=1" />
+    <meta name="description" content="php-phantomjs : Default test page" />
+        
+    <title>php-phantomjs - Console error test page</title>
+  </head>
+
+  <body>
+
+      <h1>PHANTOMJS_CONSOLE_ERROR_TEST</h1>
+
+      <script type="text/javascript">
+          var value = invalid;
+      </script>
+
+  </body>
+</html>

+ 21 - 0
tests/test-console-log.html

@@ -0,0 +1,21 @@
+<!DOCTYPE html>
+<html>
+
+  <head>
+    <meta charset='utf-8' />
+    <meta http-equiv="X-UA-Compatible" content="chrome=1" />
+    <meta name="description" content="php-phantomjs : Default test page" />
+        
+    <title>php-phantomjs - Console log test page</title>
+  </head>
+
+  <body>
+
+      <h1>PHANTOMJS_CONSOLE_LOG_TEST</h1>
+      
+      <script type="text/javascript">
+          cosole.log('PHANTOMJS_CONSOLE_LOG_TEST');
+      </script>
+
+  </body>
+</html>

+ 17 - 0
tests/test-default.html

@@ -0,0 +1,17 @@
+<!DOCTYPE html>
+<html>
+
+  <head>
+    <meta charset='utf-8' />
+    <meta http-equiv="X-UA-Compatible" content="chrome=1" />
+    <meta name="description" content="php-phantomjs : Default test page" />
+        
+    <title>php-phantomjs - Default test page</title>
+  </head>
+
+  <body>
+
+      <h1>PHANTOMJS_DEFAULT_TEST</h1>
+
+  </body>
+</html>