File tree 2 files changed +32
-0
lines changed
2 files changed +32
-0
lines changed Original file line number Diff line number Diff line change
1
+ <!DOCTYPE html>
2
+ < html lang ="en ">
3
+ < head >
4
+ < meta charset ="utf-8 ">
5
+ < title > </ title >
6
+ </ head >
7
+ < body >
8
+ < script src ="../../../dist/vue.min.js "> </ script >
9
+ < script src ="../../../packages/vue-server-renderer/basic.js "> </ script >
10
+
11
+ < div id ="result "> wtf</ div >
12
+
13
+ < script >
14
+ var vm = new Vue ( {
15
+ data : { msg : 'foo' } ,
16
+ template : '<div>{{ msg }}</div>'
17
+ } )
18
+
19
+ renderVueComponentToString ( vm , function ( err , result ) {
20
+ document . getElementById ( 'result' ) . textContent = err && err . toString ( ) || result
21
+ } )
22
+ </ script >
23
+ </ body >
24
+ </ html >
Original file line number Diff line number Diff line change
1
+ module . exports = {
2
+ 'basic SSR' : function ( browser ) {
3
+ browser
4
+ . url ( 'http://localhost:8080/test/e2e/specs/basic-ssr.html' )
5
+ . assert . containsText ( '#result' , '<div data-server-rendered="true">foo</div>' )
6
+ . end ( )
7
+ }
8
+ }
You can’t perform that action at this time.
0 commit comments