sku-pg
Version:
Skulpt is a Javascript implementation of Python 2.x. Python that runs in your browser!
32 lines (28 loc) • 674 B
HTML
<html>
<!--
Copyright 2008 The Closure Library Authors. All Rights Reserved.
Use of this source code is governed by an Apache 2.0 License.
See the COPYING file for details.
-->
<head>
<title>Closure Unit Tests - goog.debug</title>
<script src="../base.js"></script>
<script>
goog.require('goog.debug');
goog.require('goog.testing.jsunit');
</script>
</head>
<body>
<script>
function testMakeWhitespaceVisible() {
assertEquals(
'Hello[_][_]World![r][n]\n' +
'[r][n]\n' +
'[f][f]I[_]am[t][t]here![r][n]\n',
goog.debug.makeWhitespaceVisible(
'Hello World!\r\n\r\n\f\fI am\t\there!\r\n'));
}
</script>
</body>
</html>