//////////////////////
/**
- * test set xml prolog and doctype
- *
- */
+ * test set xml prolog and doctype
+ *
+ */
public function testSetXmlPrologAndDocType() {
$expectedReturnValue = '<?xml version="1.0" encoding="utf-8" ?>';
}
/**
- * test set title
- *
- */
+ * test set title
+ *
+ */
public function testSetTitle() {
$expectedReturnValue = '<title>This is the title</title>';
}
/**
- * test set charset
- *
- */
+ * test set charset
+ *
+ */
public function testSetCharset() {
$expectedReturnValue = '<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />';
}
/**
- * test set favicon
- *
- */
+ * test set favicon
+ *
+ */
public function testSetFavIcon() {
$expectedReturnValue1 = '<link rel="shortcut icon" href="http://google.com/favicon.ico" />';
}
/**
- * test set baseUrl
- *
- */
+ * test set baseUrl
+ *
+ */
public function testSetBaseUrl() {
$expectedReturnValue = '<base href="http://ggogle.com/" />';
}
/**
- * test add meta tag
- *
- */
+ * test add meta tag
+ *
+ */
public function testAddMetaTag() {
$expectedReturnValue = '<meta name="author" content="Anna Lyse">';
}
/**
- * test add inline comment
- *
- */
+ * test add inline comment
+ *
+ */
public function testAddInlineComment() {
$expectedReturnValue = 'this is an inline comment written by unit test';
}
/**
- * test add header data
- *
- */
+ * test add header data
+ *
+ */
public function testAddHeaderData() {
$expectedReturnValue = '<tag method="private" name="test" />';
}
/**
- * test add footer data
- *
- */
+ * test add footer data
+ *
+ */
public function testAddFooterData() {
$expectedReturnValue = '<tag method="private" name="test" />';
}
/**
- * test add JS library file
- *
- */
+ * test add JS library file
+ *
+ */
public function testAddJsLibrary() {
$expectedRegExp = '#<script src="fileadmin/test\.(js|\d+\.js|js\?\d+)" type="text/javascript"></script>#';
/**
- * test add JS footer library file
- *
- */
+ * test add JS footer library file
+ *
+ */
public function testAddJsFooterLibrary() {
$expectedRegExp = '#<script src="fileadmin/test\.(js|\d+\.js|js\?\d+)" type="text/javascript"></script>#';
}
/**
- * test add JS file
- *
- */
+ * test add JS file
+ *
+ */
public function testAddJsFile() {
$expectedRegExp = '#<script src="fileadmin/test\.(js|\d+\.js|js\?\d+)" type="text/javascript"></script>#';
}
/**
- * test add JS file for footer
- *
- */
+ * test add JS file for footer
+ *
+ */
public function testAddJsFooterFile() {
$expectedRegExp = '#<script src="fileadmin/test\.(js|\d+\.js|js\?\d+)" type="text/javascript"></script>#';
}
/**
- * test add JS inline
- *
- */
+ * test add JS inline
+ *
+ */
public function testAddJsInlineCode() {
$expectedReturnValue = 'var x = "testvar"';
}
/**
- * test add JS inline for footer
- *
- */
+ * test add JS inline for footer
+ *
+ */
public function testAddJsFooterInlineCode() {
$expectedReturnValue = 'var x = "testvar"';
}
/**
- * test add JS handler
- *
- */
+ * test add JS handler
+ *
+ */
public function testAddExtOnReadyCode() {
$expectedReturnValue1 = 'Ext.onReady(function() {';
}
/**
- * test add CSS file
- *
- */
+ * test add CSS file
+ *
+ */
public function testAddCssFile() {
$expectedReturnValue = '<link rel="stylesheet" type="text/css" href="fileadmin/test.css" media="all" />';
}
/**
- * test add CSS inline
- *
- */
+ * test add CSS inline
+ *
+ */
public function testAddCssInlineBlock() {
$expectedReturnValue = 'body {margin:20px;}';
}
/**
- * test add CSS inline and force on top
- *
- */
+ * test add CSS inline and force on top
+ *
+ */
public function testAddCssInlineBlockForceOnTop() {
$expectedReturnValue = '/*general1*/' . LF . 'h1 {margin:20px;}' . LF . '/*general*/' . LF . 'body {margin:20px;}';
);
}
- /**
- * test load prototype
- *
- */
- public function testLoadPrototype() {
+ /**
+ * test load prototype
+ *
+ */
+ public function testLoadPrototype() {
$expectedRegExp = '#<script src="contrib/prototype/prototype\.(js|\d+\.js|js\?\d+)" type="text/javascript"></script>#';
$this->fixture->loadPrototype();
}
/**
- * test load Scriptaculous
- *
- */
+ * test load Scriptaculous
+ *
+ */
public function testLoadScriptaculous() {
$expectedRegExp = '#<script src="contrib/scriptaculous/scriptaculous\.js\?load=effects,controls,slider(&\d+)?" type="text/javascript"></script>#';
}
/**
- * test load ExtJS
- *
- */
- public function testLoadExtJS() {
+ * test load ExtJS
+ *
+ */
+ public function testLoadExtJS() {
$expectedRegExp = '#<script src="contrib/extjs/adapter/jquery/ext-jquery-adapter\.(js|\d+\.js|js\?\d+)" type="text/javascript"></script>' . LF . '<script src="contrib/extjs/ext-all\.(js|\d+\.js|js\?\d+)" type="text/javascript"></script>#m';
$this->fixture->loadExtJS(TRUE, TRUE, 'jquery');
}
/**
- * test load ExtCore
- *
- */
+ * test load ExtCore
+ *
+ */
public function testLoadExtCore() {
$expectedRegExp = '#<script src="contrib/extjs/ext-core\.(js|\d+\.js|js\?\d+)" type="text/javascript"></script>#';
}
/**
- * test enable ExtJsDebug
- *
- */
+ * test enable ExtJsDebug
+ *
+ */
public function testEnableExtJsDebug() {
$expectedRegExp = '#<script src="contrib/extjs/ext-all-debug\.(js|\d+\.js|js\?\d+)" type="text/javascript"></script>#';
}
/**
- * test enable ExtCoreDebug
- *
- */
- public function testEnableExtCoreDebug() {
+ * test enable ExtCoreDebug
+ *
+ */
+ public function testEnableExtCoreDebug() {
$expectedRegExp = '#<script src="contrib/extjs/ext-core-debug\.(js|\d+\.js|js\?\d+)" type="text/javascript"></script>#';
$this->fixture->loadExtCore();
}
/**
- * test inline language label
- *
- */
+ * test inline language label
+ *
+ */
public function testAddInlineLanguageLabel() {
$expectedReturnValue = 'TYPO3.lang = {"myKey":"myValue"}';
}
/**
- * test inline language label as array
- *
- */
+ * test inline language label as array
+ *
+ */
public function testAddInlineLanguageLabelArray() {
$expectedReturnValue = 'TYPO3.lang = {"myKey1":"myValue1","myKey2":"myValue2"}';
}
/**
- * test inline language label as array get merged
- *
- */
+ * test inline language label as array get merged
+ *
+ */
public function testAddInlineLanguageLabelArrayMerged() {
$expectedReturnValue = 'TYPO3.lang = {"myKey1":"myValue1","myKey2":"myValue2"}';
}
/**
- * test inline setting
- *
- */
+ * test inline setting
+ *
+ */
public function testAddInlineSetting() {
$expectedReturnValue = 'TYPO3.settings = {"myApp":{"myKey":"myValue"}};';
}
/**
- * test inline settings with array
- *
- */
+ * test inline settings with array
+ *
+ */
public function testAddInlineSettingArray() {
$expectedReturnValue = 'TYPO3.settings = {"myApp":{"myKey1":"myValue1","myKey2":"myValue2"}};';
}
/**
- * test inline settings with array get merged
- *
- */
+ * test inline settings with array get merged
+ *
+ */
public function testAddInlineSettingArrayMerged() {
$expectedReturnValue = 'TYPO3.settings = {"myApp":{"myKey1":"myValue1","myKey2":"myValue2"}};';
}
/**
- * test add body content
- *
- */
+ * test add body content
+ *
+ */
public function testAddBodyContent() {
$expectedReturnValue = 'ABCDE';
$this->fixture->addBodyContent('A');
/**
- * test set body content
- *
- */
+ * test set body content
+ *
+ */
public function testSetBodyContent() {
$expectedReturnValue = 'ABCDE';
$this->fixture->setBodyContent('ABCDE');