root/lang/javascript/Object.toSource/tests/string.html @ 1782

Revision 1782, 0.7 kB (checked in by holidays-l, 7 years ago)

lang/javascript/Object.toSource: imported

  • Property svn:keywords set to Date Revision Author HeadURL Id
Line 
1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
2<html lang="ja">
3  <head>
4    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
5    <meta http-equiv="Content-Style-Type" content="text/css">
6    <meta http-equiv="Content-Script-Type" content="text/javascript">
7    <title>Object.toSource</title>
8    <script type="text/javascript" src="lib/JSAN.js"></script>
9  </head>
10  <body>
11    <script type="text/javascript"><!--
12JSAN.addRepository('lib', '../lib');
13JSAN.errorLevel = 'die';
14JSAN.use('Test.More');
15plan({ tests: 1 });
16
17JSAN.use('Object.toSource');
18
19var s = '1';
20is(s.toSource(), '(new String("1"))');
21// --></script>
22  </body>
23</html>
Note: See TracBrowser for help on using the browser.