mirror of
https://github.com/liriliri/eruda.git
synced 2026-03-20 09:38:37 +08:00
Add: Log content url recognition
This commit is contained in:
@@ -10,9 +10,8 @@
|
||||
<script src="lib/jasmine-html.js"></script>
|
||||
<script src="assets/eruda.js"></script>
|
||||
<script src="boot.js"></script>
|
||||
<script src="http://cdnjs.cloudflare.com/ajax/libs/three.js/r40/Three.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<script>boot('console');</script>
|
||||
</body>
|
||||
</html>
|
||||
</html>
|
||||
|
||||
@@ -17,6 +17,13 @@ describe('log', function ()
|
||||
expect($tool.find('.eruda-log')).toHaveLength(0);
|
||||
});
|
||||
|
||||
it('recognize url', function ()
|
||||
{
|
||||
tool.clear();
|
||||
tool.log('http://liriliri.github.io/eruda/?plugin=fps');
|
||||
expect($tool.find('.eruda-log')).toContainHtml('<a href="http://liriliri.github.io/eruda/?plugin=fps" target="_blank">http://liriliri.github.io/eruda/?plugin=fps</a>');
|
||||
});
|
||||
|
||||
it('basic object', function ()
|
||||
{
|
||||
var obj = {a: 1};
|
||||
|
||||
Reference in New Issue
Block a user