aboutsummaryrefslogtreecommitdiff
path: root/WordPress/src
diff options
context:
space:
mode:
authorStefanos Togkoulidis <stefanostogoulidis@gmail.com>2016-03-21 12:39:35 +0200
committerStefanos Togkoulidis <stefanostogoulidis@gmail.com>2016-03-21 12:39:35 +0200
commitf63a1df5c14da09a2b76964405ccc7c2ad686f74 (patch)
tree7b84ff0df322b4ef4e81f5df6ed2df6a87a45f00 /WordPress/src
parent20c519a13aa84674f2f4bcf40ed9f06c23f55fc3 (diff)
parent81db586d1256e2864503cf58a457c1d8fc449c4e (diff)
downloadgradle-perf-android-medium-f63a1df5c14da09a2b76964405ccc7c2ad686f74.tar.gz
Add 'WordPress/src/androidTest/assets/health-check/' from commit '81db586d1256e2864503cf58a457c1d8fc449c4e'
git-subtree-dir: WordPress/src/androidTest/assets/health-check git-subtree-mainline: 20c519a13aa84674f2f4bcf40ed9f06c23f55fc3 git-subtree-split: 81db586d1256e2864503cf58a457c1d8fc449c4e
Diffstat (limited to 'WordPress/src')
-rw-r--r--WordPress/src/androidTest/assets/health-check/health-check-xplat-testcases.json229
-rw-r--r--WordPress/src/androidTest/assets/health-check/index.html153
-rw-r--r--WordPress/src/androidTest/assets/health-check/index_with_redirect.html153
-rw-r--r--WordPress/src/androidTest/assets/health-check/listMethodsResponse.xml91
-rw-r--r--WordPress/src/androidTest/assets/health-check/rsd.xml14
-rw-r--r--WordPress/src/androidTest/assets/health-check/rsd_with_redirect.xml14
6 files changed, 654 insertions, 0 deletions
diff --git a/WordPress/src/androidTest/assets/health-check/health-check-xplat-testcases.json b/WordPress/src/androidTest/assets/health-check/health-check-xplat-testcases.json
new file mode 100644
index 000000000..49cb953e8
--- /dev/null
+++ b/WordPress/src/androidTest/assets/health-check/health-check-xplat-testcases.json
@@ -0,0 +1,229 @@
+{
+ "testcases": [
+ {
+ "comment": "testing empty url",
+ "realm": "URL_CANONICALIZATION",
+ "setup": {
+ "input": {
+ "siteUrl": ""
+ },
+ "output": {
+ "error": {
+ "type": "SITE_URL_CANNOT_BE_EMPTY",
+ "message": "Check that the site URL entered is valid"
+ }
+ }
+ }
+ },
+ {
+ "comment": "testing whitespace url",
+ "realm": "URL_CANONICALIZATION",
+ "setup": {
+ "input": {
+ "siteUrl": " "
+ },
+ "output": {
+ "error": {
+ "type": "SITE_URL_CANNOT_BE_EMPTY",
+ "message": "Check that the site URL entered is valid"
+ }
+ }
+ }
+ },
+ {
+ "comment": "testing null url",
+ "realm": "URL_CANONICALIZATION",
+ "setup": {
+ "input": {
+ "siteUrl": null
+ },
+ "output": {
+ "error": {
+ "type": "SITE_URL_CANNOT_BE_EMPTY",
+ "message": "Check that the site URL entered is valid"
+ }
+ }
+ }
+ },
+ {
+ "comment": "testing padding whitespace",
+ "realm": "URL_CANONICALIZATION",
+ "setup": {
+ "input": {
+ "siteUrl": " \t http://wordpress.com \t "
+ },
+ "output": {
+ "siteUrl": "http://wordpress.com"
+ }
+ }
+ },
+ {
+ "comment": "testing xmlrpc.php missing",
+ "realm": "XMLPRC_DISCOVERY",
+ "setup": {
+ "input": {
+ "serverMock": [
+ {
+ "request": {
+ "method": "GET",
+ "path": "/"
+ },
+ "response": {
+ "statusCode": 404
+ }
+ },
+ {
+ "request": {
+ "method": "GET",
+ "path": "/xmlrpc.php"
+ },
+ "response": {
+ "statusCode": 404
+ }
+ },
+ {
+ "request": {
+ "method": "POST",
+ "path": "/"
+ },
+ "response": {
+ "statusCode": 404
+ }
+ },
+ {
+ "request": {
+ "method": "POST",
+ "path": "/xmlrpc.php"
+ },
+ "response": {
+ "statusCode": 404
+ }
+ }
+ ]
+ },
+ "output": {
+ "error": {
+ "type": "XMLRPC_MISSING",
+ "message": "Couldn't connect to the WordPress site"
+ }
+ }
+ }
+ },
+ {
+ "comment": "testing xmlrpc.php found",
+ "realm": "XMLPRC_DISCOVERY",
+ "setup": {
+ "input": {
+ "serverMock": [
+ {
+ "request": {
+ "method": "POST",
+ "path": "/xmlrpc.php"
+ },
+ "response": {
+ "statusCode": 200,
+ "body": "asset:listMethodsResponse.xml"
+ }
+ }
+ ]
+ },
+ "output": {
+ "xmlrpcEndpoint": "http://mockserver/xmlrpc.php"
+ }
+ }
+ },
+ {
+ "comment": "testing xmlrpc.php discovered after redirect",
+ "realm": "XMLPRC_DISCOVERY",
+ "setup": {
+ "input": {
+ "siteUrl": "http://mockserver/wp",
+ "serverMock": [
+ {
+ "request": {
+ "method": "GET",
+ "path": "/wp"
+ },
+ "response": {
+ "statusCode": 301,
+ "headers": {
+ "Location": "/wpnew/"
+ },
+ "body": "Page has moved!"
+ }
+ },
+ {
+ "request": {
+ "method": "POST",
+ "path": "/wp"
+ },
+ "response": {
+ "statusCode": 307,
+ "headers": {
+ "Location": "/wpnew/"
+ },
+ "body": "Page has moved! POST to new address!"
+ }
+ },
+ {
+ "request": {
+ "method": "POST",
+ "path": "/wp/xmlrpc.php"
+ },
+ "response": {
+ "statusCode": 307,
+ "headers": {
+ "Location": "/wpnew/xmlrpc.php"
+ },
+ "body": "Page has moved! POST to new address!"
+ }
+ },
+ {
+ "request": {
+ "method": "GET",
+ "path": "/wpnew/"
+ },
+ "response": {
+ "statusCode": 200,
+ "body": "asset:index_with_redirect.html"
+ }
+ },
+ {
+ "request": {
+ "method": "GET",
+ "path": "/wpnew/xmlrpc.php?rsd"
+ },
+ "response": {
+ "statusCode": 200,
+ "body": "asset:rsd_with_redirect.xml"
+ }
+ },
+ {
+ "request": {
+ "method": "GET",
+ "path": "/wpnew/xmlrpc.php"
+ },
+ "response": {
+ "statusCode": 405,
+ "body": "XML-RPC server accepts POST requests only."
+ }
+ },
+ {
+ "request": {
+ "method": "POST",
+ "path": "/wpnew/xmlrpc.php"
+ },
+ "response": {
+ "statusCode": 200,
+ "body": "asset:listMethodsResponse.xml"
+ }
+ }
+ ]
+ },
+ "output": {
+ "xmlrpcEndpoint": "http://mockserver/wpnew/xmlrpc.php"
+ }
+ }
+ }
+ ]
+}
diff --git a/WordPress/src/androidTest/assets/health-check/index.html b/WordPress/src/androidTest/assets/health-check/index.html
new file mode 100644
index 000000000..e4c7f314b
--- /dev/null
+++ b/WordPress/src/androidTest/assets/health-check/index.html
@@ -0,0 +1,153 @@
+<!DOCTYPE html>
+<html lang="en-US" class="no-js">
+<head>
+ <meta charset="UTF-8">
+ <meta name="viewport" content="width=device-width">
+ <link rel="profile" href="http://gmpg.org/xfn/11">
+ <link rel="pingback" href="http://mockserver/xmlrpc.php">
+ <!--[if lt IE 9]>
+ <script src="http://mockserver/wp-content/themes/twentyfifteen/js/html5.js"></script>
+ <![endif]-->
+ <script>(function(html){html.className = html.className.replace(/\bno-js\b/,'js')})(document.documentElement);</script>
+ <title>wplogin &#8211; Just another WordPress site</title>
+ <meta name='robots' content='noindex,follow' />
+ <link rel="alternate" type="application/rss+xml" title="wplogin &raquo; Feed" href="http://mockserver/feed/" />
+ <link rel="alternate" type="application/rss+xml" title="wplogin &raquo; Comments Feed" href="http://mockserver/comments/feed/" />
+ <script type="text/javascript">
+ window._wpemojiSettings = {"baseUrl":"https:\/\/s.w.org\/images\/core\/emoji\/72x72\/","ext":".png","source":{"concatemoji":"https:\/\/mockserver\/wp-includes\/js\/wp-emoji-release.min.js?ver=4.4.2"}};
+ !function(a,b,c){function d(a){var c,d=b.createElement("canvas"),e=d.getContext&&d.getContext("2d"),f=String.fromCharCode;return e&&e.fillText?(e.textBaseline="top",e.font="600 32px Arial","flag"===a?(e.fillText(f(55356,56806,55356,56826),0,0),d.toDataURL().length>3e3):"diversity"===a?(e.fillText(f(55356,57221),0,0),c=e.getImageData(16,16,1,1).data.toString(),e.fillText(f(55356,57221,55356,57343),0,0),c!==e.getImageData(16,16,1,1).data.toString()):("simple"===a?e.fillText(f(55357,56835),0,0):e.fillText(f(55356,57135),0,0),0!==e.getImageData(16,16,1,1).data[0])):!1}function e(a){var c=b.createElement("script");c.src=a,c.type="text/javascript",b.getElementsByTagName("head")[0].appendChild(c)}var f,g;c.supports={simple:d("simple"),flag:d("flag"),unicode8:d("unicode8"),diversity:d("diversity")},c.DOMReady=!1,c.readyCallback=function(){c.DOMReady=!0},c.supports.simple&&c.supports.flag&&c.supports.unicode8&&c.supports.diversity||(g=function(){c.readyCallback()},b.addEventListener?(b.addEventListener("DOMContentLoaded",g,!1),a.addEventListener("load",g,!1)):(a.attachEvent("onload",g),b.attachEvent("onreadystatechange",function(){"complete"===b.readyState&&c.readyCallback()})),f=c.source||{},f.concatemoji?e(f.concatemoji):f.wpemoji&&f.twemoji&&(e(f.twemoji),e(f.wpemoji)))}(window,document,window._wpemojiSettings);
+ </script>
+ <style type="text/css">
+ img.wp-smiley,
+ img.emoji {
+ display: inline !important;
+ border: none !important;
+ box-shadow: none !important;
+ height: 1em !important;
+ width: 1em !important;
+ margin: 0 .07em !important;
+ vertical-align: -0.1em !important;
+ background: none !important;
+ padding: 0 !important;
+ }
+ </style>
+ <link rel='stylesheet' id='twentyfifteen-fonts-css' href='https://fonts.googleapis.com/css?family=Noto+Sans%3A400italic%2C700italic%2C400%2C700%7CNoto+Serif%3A400italic%2C700italic%2C400%2C700%7CInconsolata%3A400%2C700&#038;subset=latin%2Clatin-ext' type='text/css' media='all' />
+ <link rel='stylesheet' id='genericons-css' href='http://mockserver/wp-content/themes/twentyfifteen/genericons/genericons.css?ver=3.2' type='text/css' media='all' />
+ <link rel='stylesheet' id='twentyfifteen-style-css' href='http://mockserver/wp-content/themes/twentyfifteen/style.css?ver=4.4.2' type='text/css' media='all' />
+ <!--[if lt IE 9]>
+ <link rel='stylesheet' id='twentyfifteen-ie-css' href='http://mockserver/wp-content/themes/twentyfifteen/css/ie.css?ver=20141010' type='text/css' media='all' />
+ <![endif]-->
+ <!--[if lt IE 8]>
+ <link rel='stylesheet' id='twentyfifteen-ie7-css' href='http://mockserver/wp-content/themes/twentyfifteen/css/ie7.css?ver=20141010' type='text/css' media='all' />
+ <![endif]-->
+ <script type='text/javascript' src='http://mockserver/wp-includes/js/jquery/jquery.js?ver=1.11.3'></script>
+ <script type='text/javascript' src='http://mockserver/wp-includes/js/jquery/jquery-migrate.min.js?ver=1.2.1'></script>
+ <link rel='https://api.w.org/' href='http://mockserver/wp-json/' />
+ <link rel="EditURI" type="application/rsd+xml" title="RSD" href="http://mockserver/xmlrpc.php?rsd" />
+ <link rel="wlwmanifest" type="application/wlwmanifest+xml" href="http://mockserver/wp-includes/wlwmanifest.xml" />
+ <meta name="generator" content="WordPress 4.4.2" />
+ <style type="text/css">.recentcomments a{display:inline !important;padding:0 !important;margin:0 !important;}</style>
+ <script type='text/javascript' src='http://mockserver/wp-includes/js/tw-sack.min.js?ver=1.6.1'></script>
+</head>
+
+<body class="home blog">
+<div id="page" class="hfeed site">
+ <a class="skip-link screen-reader-text" href="#content">Skip to content</a>
+
+ <div id="sidebar" class="sidebar">
+ <header id="masthead" class="site-header" role="banner">
+ <div class="site-branding">
+ <h1 class="site-title"><a href="http://mockserver/" rel="home">wplogin</a></h1>
+ <p class="site-description">Just another WordPress site</p>
+ <button class="secondary-toggle">Menu and widgets</button>
+ </div><!-- .site-branding -->
+ </header><!-- .site-header -->
+
+ <div id="secondary" class="secondary">
+
+
+
+ <div id="widget-area" class="widget-area" role="complementary">
+ <aside id="search-2" class="widget widget_search"><form role="search" method="get" class="search-form" action="http://mockserver/">
+ <label>
+ <span class="screen-reader-text">Search for:</span>
+ <input type="search" class="search-field" placeholder="Search &hellip;" value="" name="s" title="Search for:" />
+ </label>
+ <input type="submit" class="search-submit screen-reader-text" value="Search" />
+ </form></aside> <aside id="recent-posts-2" class="widget widget_recent_entries"> <h2 class="widget-title">Recent Posts</h2> <ul>
+ <li>
+ <a href="http://mockserver/2016/03/03/hello-world/">Hello world!</a>
+ </li>
+ </ul>
+ </aside> <aside id="recent-comments-2" class="widget widget_recent_comments"><h2 class="widget-title">Recent Comments</h2><ul id="recentcomments"><li class="recentcomments"><span class="comment-author-link"><a href='https://wordpress.org/' rel='external nofollow' class='url'>Mr WordPress</a></span> on <a href="http://mockserver/2016/03/03/hello-world/#comment-1">Hello world!</a></li></ul></aside><aside id="archives-2" class="widget widget_archive"><h2 class="widget-title">Archives</h2> <ul>
+ <li><a href='http://mockserver/2016/03/'>March 2016</a></li>
+ </ul>
+ </aside><aside id="categories-2" class="widget widget_categories"><h2 class="widget-title">Categories</h2> <ul>
+ <li class="cat-item cat-item-1"><a href="http://mockserver/category/uncategorized/" >Uncategorized</a>
+ </li>
+ </ul>
+ </aside><aside id="meta-2" class="widget widget_meta"><h2 class="widget-title">Meta</h2> <ul>
+ <li><a href="http://mockserver/wp-login.php">Log in</a></li>
+ <li><a href="http://mockserver/feed/">Entries <abbr title="Really Simple Syndication">RSS</abbr></a></li>
+ <li><a href="http://mockserver/comments/feed/">Comments <abbr title="Really Simple Syndication">RSS</abbr></a></li>
+ <li><a href="https://wordpress.org/" title="Powered by WordPress, state-of-the-art semantic personal publishing platform.">WordPress.org</a></li> </ul>
+ </aside> </div><!-- .widget-area -->
+
+ </div><!-- .secondary -->
+
+ </div><!-- .sidebar -->
+
+ <div id="content" class="site-content">
+
+ <div id="primary" class="content-area">
+ <main id="main" class="site-main" role="main">
+
+
+
+
+ <article id="post-1" class="post-1 post type-post status-publish format-standard hentry category-uncategorized">
+
+ <header class="entry-header">
+ <h2 class="entry-title"><a href="http://mockserver/2016/03/03/hello-world/" rel="bookmark">Hello world!</a></h2> </header><!-- .entry-header -->
+
+ <div class="entry-content">
+ <p>Welcome to WordPress. This is your first post. Edit or delete it, then start writing!</p>
+ </div><!-- .entry-content -->
+
+
+ <footer class="entry-footer">
+ <span class="posted-on"><span class="screen-reader-text">Posted on </span><a href="http://mockserver/2016/03/03/hello-world/" rel="bookmark"><time class="entry-date published updated" datetime="2016-03-03T10:07:52+00:00">March 3, 2016</time></a></span><span class="comments-link"><a href="http://mockserver/2016/03/03/hello-world/#comments">1 Comment<span class="screen-reader-text"> on Hello world!</span></a></span> </footer><!-- .entry-footer -->
+
+ </article><!-- #post-## -->
+
+ </main><!-- .site-main -->
+ </div><!-- .content-area -->
+
+
+ </div><!-- .site-content -->
+
+ <footer id="colophon" class="site-footer" role="contentinfo">
+ <div class="site-info">
+ <a href="https://wordpress.org/">Proudly powered by WordPress</a>
+ </div><!-- .site-info -->
+ </footer><!-- .site-footer -->
+
+</div><!-- .site -->
+
+<script type='text/javascript' src='http://mockserver/wp-content/themes/twentyfifteen/js/skip-link-focus-fix.js?ver=20141010'></script>
+<script type='text/javascript'>
+/* <![CDATA[ */
+var screenReaderText = {"expand":"<span class=\"screen-reader-text\">expand child menu<\/span>","collapse":"<span class=\"screen-reader-text\">collapse child menu<\/span>"};
+/* ]]> */
+</script>
+<script type='text/javascript' src='http://mockserver/wp-content/themes/twentyfifteen/js/functions.js?ver=20150330'></script>
+<script type='text/javascript' src='http://mockserver/wp-includes/js/wp-embed.min.js?ver=4.4.2'></script>
+<script type="text/javascript">
+/* <![CDATA[ */
+jQuery(document).ready( function($) {
+ $("ul.menu").not(":has(li)").closest('div').prev('h3.widget-title').hide();
+});
+/* ]]> */
+</script>
+</body>
+</html>
diff --git a/WordPress/src/androidTest/assets/health-check/index_with_redirect.html b/WordPress/src/androidTest/assets/health-check/index_with_redirect.html
new file mode 100644
index 000000000..7c5ea729e
--- /dev/null
+++ b/WordPress/src/androidTest/assets/health-check/index_with_redirect.html
@@ -0,0 +1,153 @@
+<!DOCTYPE html>
+<html lang="en-US" class="no-js">
+<head>
+ <meta charset="UTF-8">
+ <meta name="viewport" content="width=device-width">
+ <link rel="profile" href="http://gmpg.org/xfn/11">
+ <link rel="pingback" href="http://mockserver/wpnew/xmlrpc.php">
+ <!--[if lt IE 9]>
+ <script src="http://mockserver/wpnew/wp-content/themes/twentyfifteen/js/html5.js"></script>
+ <![endif]-->
+ <script>(function(html){html.className = html.className.replace(/\bno-js\b/,'js')})(document.documentElement);</script>
+ <title>wplogin &#8211; Just another WordPress site</title>
+ <meta name='robots' content='noindex,follow' />
+ <link rel="alternate" type="application/rss+xml" title="wplogin &raquo; Feed" href="http://mockserver/wpnew/feed/" />
+ <link rel="alternate" type="application/rss+xml" title="wplogin &raquo; Comments Feed" href="http://mockserver/wpnew/comments/feed/" />
+ <script type="text/javascript">
+ window._wpemojiSettings = {"baseUrl":"https:\/\/s.w.org\/images\/core\/emoji\/72x72\/","ext":".png","source":{"concatemoji":"https:\/\/mockserver/api\/wp-includes\/js\/wp-emoji-release.min.js?ver=4.4.2"}};
+ !function(a,b,c){function d(a){var c,d=b.createElement("canvas"),e=d.getContext&&d.getContext("2d"),f=String.fromCharCode;return e&&e.fillText?(e.textBaseline="top",e.font="600 32px Arial","flag"===a?(e.fillText(f(55356,56806,55356,56826),0,0),d.toDataURL().length>3e3):"diversity"===a?(e.fillText(f(55356,57221),0,0),c=e.getImageData(16,16,1,1).data.toString(),e.fillText(f(55356,57221,55356,57343),0,0),c!==e.getImageData(16,16,1,1).data.toString()):("simple"===a?e.fillText(f(55357,56835),0,0):e.fillText(f(55356,57135),0,0),0!==e.getImageData(16,16,1,1).data[0])):!1}function e(a){var c=b.createElement("script");c.src=a,c.type="text/javascript",b.getElementsByTagName("head")[0].appendChild(c)}var f,g;c.supports={simple:d("simple"),flag:d("flag"),unicode8:d("unicode8"),diversity:d("diversity")},c.DOMReady=!1,c.readyCallback=function(){c.DOMReady=!0},c.supports.simple&&c.supports.flag&&c.supports.unicode8&&c.supports.diversity||(g=function(){c.readyCallback()},b.addEventListener?(b.addEventListener("DOMContentLoaded",g,!1),a.addEventListener("load",g,!1)):(a.attachEvent("onload",g),b.attachEvent("onreadystatechange",function(){"complete"===b.readyState&&c.readyCallback()})),f=c.source||{},f.concatemoji?e(f.concatemoji):f.wpemoji&&f.twemoji&&(e(f.twemoji),e(f.wpemoji)))}(window,document,window._wpemojiSettings);
+ </script>
+ <style type="text/css">
+ img.wp-smiley,
+ img.emoji {
+ display: inline !important;
+ border: none !important;
+ box-shadow: none !important;
+ height: 1em !important;
+ width: 1em !important;
+ margin: 0 .07em !important;
+ vertical-align: -0.1em !important;
+ background: none !important;
+ padding: 0 !important;
+ }
+ </style>
+ <link rel='stylesheet' id='twentyfifteen-fonts-css' href='https://fonts.googleapis.com/css?family=Noto+Sans%3A400italic%2C700italic%2C400%2C700%7CNoto+Serif%3A400italic%2C700italic%2C400%2C700%7CInconsolata%3A400%2C700&#038;subset=latin%2Clatin-ext' type='text/css' media='all' />
+ <link rel='stylesheet' id='genericons-css' href='http://mockserver/wpnew/wp-content/themes/twentyfifteen/genericons/genericons.css?ver=3.2' type='text/css' media='all' />
+ <link rel='stylesheet' id='twentyfifteen-style-css' href='http://mockserver/wpnew/wp-content/themes/twentyfifteen/style.css?ver=4.4.2' type='text/css' media='all' />
+ <!--[if lt IE 9]>
+ <link rel='stylesheet' id='twentyfifteen-ie-css' href='http://mockserver/wpnew/wp-content/themes/twentyfifteen/css/ie.css?ver=20141010' type='text/css' media='all' />
+ <![endif]-->
+ <!--[if lt IE 8]>
+ <link rel='stylesheet' id='twentyfifteen-ie7-css' href='http://mockserver/wpnew/wp-content/themes/twentyfifteen/css/ie7.css?ver=20141010' type='text/css' media='all' />
+ <![endif]-->
+ <script type='text/javascript' src='http://mockserver/wpnew/wp-includes/js/jquery/jquery.js?ver=1.11.3'></script>
+ <script type='text/javascript' src='http://mockserver/wpnew/wp-includes/js/jquery/jquery-migrate.min.js?ver=1.2.1'></script>
+ <link rel='https://api.w.org/' href='http://mockserver/wpnew/wp-json/' />
+ <link rel="EditURI" type="application/rsd+xml" title="RSD" href="http://mockserver/wpnew/xmlrpc.php?rsd" />
+ <link rel="wlwmanifest" type="application/wlwmanifest+xml" href="http://mockserver/wpnew/wp-includes/wlwmanifest.xml" />
+ <meta name="generator" content="WordPress 4.4.2" />
+ <style type="text/css">.recentcomments a{display:inline !important;padding:0 !important;margin:0 !important;}</style>
+ <script type='text/javascript' src='http://mockserver/wpnew/wp-includes/js/tw-sack.min.js?ver=1.6.1'></script>
+</head>
+
+<body class="home blog">
+<div id="page" class="hfeed site">
+ <a class="skip-link screen-reader-text" href="#content">Skip to content</a>
+
+ <div id="sidebar" class="sidebar">
+ <header id="masthead" class="site-header" role="banner">
+ <div class="site-branding">
+ <h1 class="site-title"><a href="http://mockserver/wpnew/" rel="home">wplogin</a></h1>
+ <p class="site-description">Just another WordPress site</p>
+ <button class="secondary-toggle">Menu and widgets</button>
+ </div><!-- .site-branding -->
+ </header><!-- .site-header -->
+
+ <div id="secondary" class="secondary">
+
+
+
+ <div id="widget-area" class="widget-area" role="complementary">
+ <aside id="search-2" class="widget widget_search"><form role="search" method="get" class="search-form" action="http://mockserver/wpnew/">
+ <label>
+ <span class="screen-reader-text">Search for:</span>
+ <input type="search" class="search-field" placeholder="Search &hellip;" value="" name="s" title="Search for:" />
+ </label>
+ <input type="submit" class="search-submit screen-reader-text" value="Search" />
+ </form></aside> <aside id="recent-posts-2" class="widget widget_recent_entries"> <h2 class="widget-title">Recent Posts</h2> <ul>
+ <li>
+ <a href="http://mockserver/wpnew/2016/03/03/hello-world/">Hello world!</a>
+ </li>
+ </ul>
+ </aside> <aside id="recent-comments-2" class="widget widget_recent_comments"><h2 class="widget-title">Recent Comments</h2><ul id="recentcomments"><li class="recentcomments"><span class="comment-author-link"><a href='https://wordpress.org/' rel='external nofollow' class='url'>Mr WordPress</a></span> on <a href="http://mockserver/wpnew/2016/03/03/hello-world/#comment-1">Hello world!</a></li></ul></aside><aside id="archives-2" class="widget widget_archive"><h2 class="widget-title">Archives</h2> <ul>
+ <li><a href='http://mockserver/wpnew/2016/03/'>March 2016</a></li>
+ </ul>
+ </aside><aside id="categories-2" class="widget widget_categories"><h2 class="widget-title">Categories</h2> <ul>
+ <li class="cat-item cat-item-1"><a href="http://mockserver/wpnew/category/uncategorized/" >Uncategorized</a>
+ </li>
+ </ul>
+ </aside><aside id="meta-2" class="widget widget_meta"><h2 class="widget-title">Meta</h2> <ul>
+ <li><a href="http://mockserver/wpnew/wp-login.php">Log in</a></li>
+ <li><a href="http://mockserver/wpnew/feed/">Entries <abbr title="Really Simple Syndication">RSS</abbr></a></li>
+ <li><a href="http://mockserver/wpnew/comments/feed/">Comments <abbr title="Really Simple Syndication">RSS</abbr></a></li>
+ <li><a href="https://wordpress.org/" title="Powered by WordPress, state-of-the-art semantic personal publishing platform.">WordPress.org</a></li> </ul>
+ </aside> </div><!-- .widget-area -->
+
+ </div><!-- .secondary -->
+
+ </div><!-- .sidebar -->
+
+ <div id="content" class="site-content">
+
+ <div id="primary" class="content-area">
+ <main id="main" class="site-main" role="main">
+
+
+
+
+ <article id="post-1" class="post-1 post type-post status-publish format-standard hentry category-uncategorized">
+
+ <header class="entry-header">
+ <h2 class="entry-title"><a href="http://mockserver/wpnew/2016/03/03/hello-world/" rel="bookmark">Hello world!</a></h2> </header><!-- .entry-header -->
+
+ <div class="entry-content">
+ <p>Welcome to WordPress. This is your first post. Edit or delete it, then start writing!</p>
+ </div><!-- .entry-content -->
+
+
+ <footer class="entry-footer">
+ <span class="posted-on"><span class="screen-reader-text">Posted on </span><a href="http://mockserver/wpnew/2016/03/03/hello-world/" rel="bookmark"><time class="entry-date published updated" datetime="2016-03-03T10:07:52+00:00">March 3, 2016</time></a></span><span class="comments-link"><a href="http://mockserver/wpnew/2016/03/03/hello-world/#comments">1 Comment<span class="screen-reader-text"> on Hello world!</span></a></span> </footer><!-- .entry-footer -->
+
+ </article><!-- #post-## -->
+
+ </main><!-- .site-main -->
+ </div><!-- .content-area -->
+
+
+ </div><!-- .site-content -->
+
+ <footer id="colophon" class="site-footer" role="contentinfo">
+ <div class="site-info">
+ <a href="https://wordpress.org/">Proudly powered by WordPress</a>
+ </div><!-- .site-info -->
+ </footer><!-- .site-footer -->
+
+</div><!-- .site -->
+
+<script type='text/javascript' src='http://mockserver/wpnew/wp-content/themes/twentyfifteen/js/skip-link-focus-fix.js?ver=20141010'></script>
+<script type='text/javascript'>
+/* <![CDATA[ */
+var screenReaderText = {"expand":"<span class=\"screen-reader-text\">expand child menu<\/span>","collapse":"<span class=\"screen-reader-text\">collapse child menu<\/span>"};
+/* ]]> */
+</script>
+<script type='text/javascript' src='http://mockserver/wpnew/wp-content/themes/twentyfifteen/js/functions.js?ver=20150330'></script>
+<script type='text/javascript' src='http://mockserver/wpnew/wp-includes/js/wp-embed.min.js?ver=4.4.2'></script>
+<script type="text/javascript">
+/* <![CDATA[ */
+jQuery(document).ready( function($) {
+ $("ul.menu").not(":has(li)").closest('div').prev('h3.widget-title').hide();
+});
+/* ]]> */
+</script>
+</body>
+</html>
diff --git a/WordPress/src/androidTest/assets/health-check/listMethodsResponse.xml b/WordPress/src/androidTest/assets/health-check/listMethodsResponse.xml
new file mode 100644
index 000000000..d7b363def
--- /dev/null
+++ b/WordPress/src/androidTest/assets/health-check/listMethodsResponse.xml
@@ -0,0 +1,91 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<methodResponse>
+ <params>
+ <param>
+ <value>
+ <array><data>
+ <value><string>system.multicall</string></value>
+ <value><string>system.listMethods</string></value>
+ <value><string>system.getCapabilities</string></value>
+ <value><string>demo.addTwoNumbers</string></value>
+ <value><string>demo.sayHello</string></value>
+ <value><string>pingback.extensions.getPingbacks</string></value>
+ <value><string>pingback.ping</string></value>
+ <value><string>mt.publishPost</string></value>
+ <value><string>mt.getTrackbackPings</string></value>
+ <value><string>mt.supportedTextFilters</string></value>
+ <value><string>mt.supportedMethods</string></value>
+ <value><string>mt.setPostCategories</string></value>
+ <value><string>mt.getPostCategories</string></value>
+ <value><string>mt.getRecentPostTitles</string></value>
+ <value><string>mt.getCategoryList</string></value>
+ <value><string>metaWeblog.getUsersBlogs</string></value>
+ <value><string>metaWeblog.deletePost</string></value>
+ <value><string>metaWeblog.newMediaObject</string></value>
+ <value><string>metaWeblog.getCategories</string></value>
+ <value><string>metaWeblog.getRecentPosts</string></value>
+ <value><string>metaWeblog.getPost</string></value>
+ <value><string>metaWeblog.editPost</string></value>
+ <value><string>metaWeblog.newPost</string></value>
+ <value><string>blogger.deletePost</string></value>
+ <value><string>blogger.editPost</string></value>
+ <value><string>blogger.newPost</string></value>
+ <value><string>blogger.getRecentPosts</string></value>
+ <value><string>blogger.getPost</string></value>
+ <value><string>blogger.getUserInfo</string></value>
+ <value><string>blogger.getUsersBlogs</string></value>
+ <value><string>wp.restoreRevision</string></value>
+ <value><string>wp.getRevisions</string></value>
+ <value><string>wp.getPostTypes</string></value>
+ <value><string>wp.getPostType</string></value>
+ <value><string>wp.getPostFormats</string></value>
+ <value><string>wp.getMediaLibrary</string></value>
+ <value><string>wp.getMediaItem</string></value>
+ <value><string>wp.getCommentStatusList</string></value>
+ <value><string>wp.newComment</string></value>
+ <value><string>wp.editComment</string></value>
+ <value><string>wp.deleteComment</string></value>
+ <value><string>wp.getComments</string></value>
+ <value><string>wp.getComment</string></value>
+ <value><string>wp.setOptions</string></value>
+ <value><string>wp.getOptions</string></value>
+ <value><string>wp.getPageTemplates</string></value>
+ <value><string>wp.getPageStatusList</string></value>
+ <value><string>wp.getPostStatusList</string></value>
+ <value><string>wp.getCommentCount</string></value>
+ <value><string>wp.deleteFile</string></value>
+ <value><string>wp.uploadFile</string></value>
+ <value><string>wp.suggestCategories</string></value>
+ <value><string>wp.deleteCategory</string></value>
+ <value><string>wp.newCategory</string></value>
+ <value><string>wp.getTags</string></value>
+ <value><string>wp.getCategories</string></value>
+ <value><string>wp.getAuthors</string></value>
+ <value><string>wp.getPageList</string></value>
+ <value><string>wp.editPage</string></value>
+ <value><string>wp.deletePage</string></value>
+ <value><string>wp.newPage</string></value>
+ <value><string>wp.getPages</string></value>
+ <value><string>wp.getPage</string></value>
+ <value><string>wp.editProfile</string></value>
+ <value><string>wp.getProfile</string></value>
+ <value><string>wp.getUsers</string></value>
+ <value><string>wp.getUser</string></value>
+ <value><string>wp.getTaxonomies</string></value>
+ <value><string>wp.getTaxonomy</string></value>
+ <value><string>wp.getTerms</string></value>
+ <value><string>wp.getTerm</string></value>
+ <value><string>wp.deleteTerm</string></value>
+ <value><string>wp.editTerm</string></value>
+ <value><string>wp.newTerm</string></value>
+ <value><string>wp.getPosts</string></value>
+ <value><string>wp.getPost</string></value>
+ <value><string>wp.deletePost</string></value>
+ <value><string>wp.editPost</string></value>
+ <value><string>wp.newPost</string></value>
+ <value><string>wp.getUsersBlogs</string></value>
+ </data></array>
+ </value>
+ </param>
+ </params>
+</methodResponse> \ No newline at end of file
diff --git a/WordPress/src/androidTest/assets/health-check/rsd.xml b/WordPress/src/androidTest/assets/health-check/rsd.xml
new file mode 100644
index 000000000..3ce327393
--- /dev/null
+++ b/WordPress/src/androidTest/assets/health-check/rsd.xml
@@ -0,0 +1,14 @@
+<?xml version="1.0" encoding="UTF-8"?><rsd version="1.0" xmlns="http://archipelago.phrasewise.com/rsd">
+ <service>
+ <engineName>WordPress</engineName>
+ <engineLink>https://wordpress.org/</engineLink>
+ <homePageLink>http://mockserver</homePageLink>
+ <apis>
+ <api name="WordPress" blogID="1" preferred="true" apiLink="http://mockserver/xmlrpc.php" />
+ <api name="Movable Type" blogID="1" preferred="false" apiLink="http://mockserver/xmlrpc.php" />
+ <api name="MetaWeblog" blogID="1" preferred="false" apiLink="http://mockserver/xmlrpc.php" />
+ <api name="Blogger" blogID="1" preferred="false" apiLink="http://mockserver/xmlrpc.php" />
+ <api name="WP-API" blogID="1" preferred="false" apiLink="http://mockserver/wp-json/" />
+ </apis>
+ </service>
+</rsd>
diff --git a/WordPress/src/androidTest/assets/health-check/rsd_with_redirect.xml b/WordPress/src/androidTest/assets/health-check/rsd_with_redirect.xml
new file mode 100644
index 000000000..4de183be4
--- /dev/null
+++ b/WordPress/src/androidTest/assets/health-check/rsd_with_redirect.xml
@@ -0,0 +1,14 @@
+<?xml version="1.0" encoding="UTF-8"?><rsd version="1.0" xmlns="http://archipelago.phrasewise.com/rsd">
+ <service>
+ <engineName>WordPress</engineName>
+ <engineLink>https://wordpress.org/</engineLink>
+ <homePageLink>http://mockserver</homePageLink>
+ <apis>
+ <api name="WordPress" blogID="1" preferred="true" apiLink="http://mockserver/wpnew/xmlrpc.php" />
+ <api name="Movable Type" blogID="1" preferred="false" apiLink="http://mockserver/wpnew/xmlrpc.php" />
+ <api name="MetaWeblog" blogID="1" preferred="false" apiLink="http://mockserver/wpnew/xmlrpc.php" />
+ <api name="Blogger" blogID="1" preferred="false" apiLink="http://mockserver/wpnew/xmlrpc.php" />
+ <api name="WP-API" blogID="1" preferred="false" apiLink="http://mockserver/wpnew/wp-json/" />
+ </apis>
+ </service>
+</rsd>