From 331250cce40fc93f85ccdcd743566b732493836c Mon Sep 17 00:00:00 2001 From: Gavin Laking Date: Wed, 9 Dec 2015 22:03:11 +0000 Subject: [PATCH] Update test example app to allow testing of wrapping; Work relating to #341. --- test/support/examples/material_colours_app.rb | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/test/support/examples/material_colours_app.rb b/test/support/examples/material_colours_app.rb index f7f8931ae..d32870061 100755 --- a/test/support/examples/material_colours_app.rb +++ b/test/support/examples/material_colours_app.rb @@ -273,6 +273,16 @@ class VedeuMaterialColoursApp zindex(0) end + Vedeu.interface 'wrapping' do + colour background: '#555555', foreground: '#ffffff' + geometry do + x 3 + xn 13 + y 36 + yn 39 + end + end + Vedeu.keymap('_global_') do key(:up) { Vedeu.trigger(:_cursor_up_) } key(:right) { Vedeu.trigger(:_cursor_right_) } @@ -583,6 +593,11 @@ class VedeuMaterialColoursApp line 'style' end end + view('wrapping') do + lines do + line { text 'This is a line of text that should wrap.', mode: :wrap } + end + end end Vedeu.focus_by_name 'main_interface'