chromium/third_party/blink/web_tests/http/tests/misc/execute-and-return-value.html

<!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>