Add initial tests

This commit is contained in:
Adriaan Zonnenberg
2017-03-22 23:33:36 +01:00
parent cdd07e6497
commit 82067c7d14
6 changed files with 173 additions and 0 deletions

34
test/test_syntax.vader Normal file
View File

@@ -0,0 +1,34 @@
#
# HTML
#
Given vue(HTML template without lang attribute):
<template>
<div></div>
</template>
Execute:
AssertEqual 'htmlTag', SyntaxAt(2, 3)
#
# JavaScript
#
Given vue:
<script>
//
</script>
Execute:
AssertEqual 'javaScriptLineComment', SyntaxAt(2, 3)
" TODO: Assert that the script tag is highlighted as HTML
#
# CSS
#
Given vue(CSS region without lang attribute):
<style>
/**/
</style>
Execute:
AssertEqual 'cssComment', SyntaxAt(2, 3)
" TODO Assert that the style tag is highlighted as HTML