blob: e8b459301d36ec4e2d5330c818d58b3cbb38c70f [file] [log] [blame]
<!DOCTYPE html>
<html>
<body>
<script>
if (window.testRunner) {
testRunner.dumpAsText();
var intTest = testRunner.evaluateScriptInIsolatedWorldAndReturnValue(1, "5");
document.body.appendChild(document.createTextNode('Expecting 5: ' + intTest));
document.body.appendChild(document.createElement('br'));
var doubleTest = testRunner.evaluateScriptInIsolatedWorldAndReturnValue(1, "3.14");
document.body.appendChild(document.createTextNode('Expecting 3.14: ' + doubleTest));
document.body.appendChild(document.createElement('br'));
var stringTest = testRunner.evaluateScriptInIsolatedWorldAndReturnValue(1, '"The quick brown dog."');
document.body.appendChild(document.createTextNode('Expecting "The quick brown dog.": ' + stringTest));
document.body.appendChild(document.createElement('br'));
var booleanTest = testRunner.evaluateScriptInIsolatedWorldAndReturnValue(1, "!true");
document.body.appendChild(document.createTextNode('Expecting false: ' + booleanTest));
document.body.appendChild(document.createElement('br'));
var nullTest = testRunner.evaluateScriptInIsolatedWorldAndReturnValue(1, "null");
document.body.appendChild(document.createTextNode('Expecting null: ' + nullTest));
document.body.appendChild(document.createElement('br'));
}
</script>
</body>
</html>