Permalink
Browse files

Web tester: Created getAjaxData function.

  • Loading branch information...
1 parent 69ada59 commit 710f19b5d8e359c67eefa294152d56feafd63fdd @tchalvak tchalvak committed Jun 13, 2012
Showing with 9 additions and 0 deletions.
  1. +9 −0 web_tester.php
View
@@ -565,6 +565,15 @@ function showSource() {
function showText() {
$this->dump(wordwrap($this->browser->getContentAsText(), 80));
}
+
+ /**
+ * Returns an array of XHR content, imploded by comma.
+ * @access public
+ */
+ function getAjaxData(){
+ $text = $this->browser->getContentAsText();
+ return $text? explode(',', $text) : null;
+ }
/**
* Simulates the closing and reopening of the browser.

0 comments on commit 710f19b

Please sign in to comment.