summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorJoe Wilm <joe@jwilm.com>2017-08-10 09:33:50 -0700
committerJoe Wilm <jwilm@users.noreply.github.com>2017-08-11 08:29:56 -0700
commit2e98bd95786df10ae3caa19d8a301063eb7742cf (patch)
tree6a6d91de4e1a0a28bfd7072df5b3bb64db2230cd /tests
parent071c72b3cd331762756ae1771d70969a03e0c993 (diff)
Add ref test for 24-bit vim BCE
Diffstat (limited to 'tests')
-rw-r--r--tests/ref/vim_24bitcolors_bce/alacritty.recording1227
-rw-r--r--tests/ref/vim_24bitcolors_bce/grid.json1
-rw-r--r--tests/ref/vim_24bitcolors_bce/size.json1
3 files changed, 1229 insertions, 0 deletions
diff --git a/tests/ref/vim_24bitcolors_bce/alacritty.recording b/tests/ref/vim_24bitcolors_bce/alacritty.recording
new file mode 100644
index 00000000..65ca97e1
--- /dev/null
+++ b/tests/ref/vim_24bitcolors_bce/alacritty.recording
@@ -0,0 +1,1227 @@
+% jwilm@kurast.local ➜  ~/code/alacritty  [?1h=[?2004h
+bck-i-search: _mv ../../../{grid.json,size.json,alacritty.recording} ./v_cd vim_large_window_scroll i_imm_     vvivim ssrrcc//rreenndderer/r [?1l>[?2004l [?1049h[?1h=▽ [?12;25h[?12l[?25h[?25l"src/renderer" is a directory[>c" ============================================================================  
+" Netrw Directory Listing (netrw v156)  
+" /Users/jwilm/code/alacritty/src/renderer 
+" Sorted by name 
+" Sort sequence: [\/]$,\<core\%(\.\d\+\)\=\>,\.h$,\.c$,\.cpp$,\~\=\*$,*,\.o$,\.obj$,\.info$,\.swp$,\.bak$,\~$
+" Quick Help: <F1>:help -:go up dir D:delete R:rename s:sort-by x:special 
+" ============================================================================== 
+../ ./ 
+mod.rs 
+~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ 8,1All[?12l[?25h[?25l../ ./ 9[?12l[?25h[?25l./ mod.rs 10,1[?12l[?25h[?25l~/code/alacritty/src/renderer/mod.rs"1354L, 40527C 864  }  
+ 865   
+ 866  pub fn deactivate(&self) {   
+ 867  unsafe {   
+ 868  gl::UseProgram(0);   869  }  
+ 870  }  
+ 871   
+ 872  pub fn new(  
+ 873  config: &Config,  874 size: Size<Pixels<u32>>   875 ) -> Result<ShaderProgram, ShaderCreationError> {   876 let vertex_source = if cfg!(feature = "live-shader-reload") {   877 None   878 } else {   879 Some(TEXT_SHADER_V)   880 };   881 let vertex_shader = ShaderProgram::create_shader(   882 TEXT_SHADER_V_PATH,   883 gl::VERTEX_SHADER,   884 vertex_source   885 )?;   886 let frag_source = if cfg!(feature = "live-shader-reload") {   887 None   888 } else {   889 Some(TEXT_SHADER_F)   890 };   891 let fragment_shader = ShaderProgram::create_shader(   892 TEXT_SHADER_F_PATH,   893 gl::FRAGMENT_SHADER,   894 frag_source   895 )?;   896 let program = ShaderProgram::create_program(vertex_shader, fragment_shader);   897   898 unsafe {   899 gl::DeleteShader(vertex_shader);   900 gl::DeleteShader(fragment_shader);   901 gl::UseProgram(program);   902 }   903   904 macro_rules! cptr {   905 ($thing:expr) => { $thing.as_ptr() as *const _ }   906 }   907   908 macro_rules! assert_uniform_valid {   909 ($uniform:expr) => {   910 assert!($uniform != gl::INVALID_VALUE as i32);   911 assert!($uniform != gl::INVALID_OPERATION as i32);   912 };   913 ( $( $uniform:expr ),* ) => {   914 $( assert_uniform_valid!($uniform); )*   915 };   916 }   917   918 // get uniform locations   919 let (projection, term_dim, cell_dim, visual_bell, background) = unsafe {  891,166%[?12l[?25h[?25l 1 // Copyright 2016 Joe Wilm, The Alacritty Project Contributors 
+ 2 // 
+ 3 // Licensed under the Apache License, Version 2.0 (the "License"); 
+ 4 // you may not use this file except in compliance with the License. 
+ 5 // You may obtain a copy of the License at 
+ 6 // 
+ 7 // http://www.apache.org/licenses/LICENSE-2.0 
+ 8 // 
+ 9 // Unless required by applicable law or agreed to in writing, software 
+ 10 // distributed under the License is distributed on an "AS IS" BASIS, 
+ 11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 
+ 12 // See the License for the specific language governing permissions and 
+ 13 // limitations under the License. 
+ 14 use std::collections::HashMap; 
+ 15 use std::hash::BuildHasherDefault; 
+ 16 use std::fs::File; 
+ 17 use std::io::{self, Read}; 
+ 18 use std::mem::size_of; 
+ 19 use std::path::{PathBuf}; 
+ 20 use std::ptr; 
+ 21 use std::sync::mpsc; 
+ 22  
+ 23 use cgmath; 
+ 24 use fnv::FnvHasher; 
+ 25 use font::{self, Rasterizer, Rasterize, RasterizedGlyph, FontDesc, GlyphKey, FontKey}; 
+ 26 use gl::types::*; 
+ 27 use gl; 
+ 28 use index::{Line, Column, RangeInclusive}; 
+ 29 use notify::{Watcher as WatcherApi, RecommendedWatcher as Watcher, op}; 
+ 30  
+ 31 use config::{self, Config, Delta}; 
+ 32 use term::{self, cell, RenderableCell}; 
+ 33 use window::{Size, Pixels}; 
+ 34  
+ 35 use Rgb; 
+ 36  
+ 37 // Shader paths for live reload 
+ 38 static TEXT_SHADER_F_PATH: &'static str = concat!(env!("CARGO_MANIFEST_DIR"), "/res/text.f.glsl");  
+ 39 static TEXT_SHADER_V_PATH: &'static str = concat!(env!("CARGO_MANIFEST_DIR"), "/res/text.v.glsl");  
+ 40  
+ 41 // Shader source which is used when live-shader-reload feature is disable 
+ 42 static TEXT_SHADER_F: &'static str = include_str!( 
+ 43  concat!(env!("CARGO_MANIFEST_DIR"), "/res/text.f.glsl") 
+ 44 ); 
+ 45 static TEXT_SHADER_V: &'static str = include_str!( 
+ 46  concat!(env!("CARGO_MANIFEST_DIR"), "/res/text.v.glsl") 
+ 47 ); 
+ 48  
+ 49 /// `LoadGlyph` allows for copying a rasterized glyph into graphics memory 
+ 50 pub trait LoadGlyph { 
+ 51  /// Load the rasterized glyph into GPU memory 
+ 52  fn load_glyph(&mut self, rasterized: &RasterizedGlyph) -> Glyph; 
+ 53 } 
+ 54  
+ 55 enum Msg { 
+ 56  ShaderReload, 1,1Top[?12l[?25h[?25l:[?12l[?25hs[?25l[?12l[?25he[?25l[?12l[?25ht[?25l[?12l[?25h[?25l ft=yaml[?12l[?25h[?25l[?12l[?25h[?25l[?12l[?25h[?25l[?12l[?25h[?25l[?12l[?25h[?25l[?12l[?25h[?25l[?12l[?25h[?25l[?12l[?25h[?25l[?12l[?25h[?25l[?12l[?25h[?25l[?12l[?25hc[?25l[?12l[?25h[?25l[?12l[?25h[?25l[?12l[?25hc[?25l[?12l[?25ho[?25l[?12l[?25hl[?25l[?12l[?25ho[?25l[?12l[?25hr[?25l[?12l[?25hs[?25l[?12l[?25hh[?25l[?12l[?25h[?25l[?12l[?25hc[?25l[?12l[?25hh[?25l[?12l[?25he[?25l[?12l[?25hm[?25l[?12l[?25he[?25l[?12l[?25h[?25l [?12l[?25h...[?25lTomorrow-Night-Bright[?12l[?25h...[?25lblue[?12l[?25h...[?25ldarkblue[?12l[?25h[?25l[?12l[?25h[?25l[?12l[?25h[?25l[?12l[?25h[?25l[?12l[?25h[?25l[?12l[?25h[?25l[?12l[?25h[?25l[?12l[?25h[?25l[?12l[?25ht[?25l[?12l[?25h...[?25lTomorrow-Night-Bright[?12l[?25h...[?25ltende[?12l[?25h [?25l 1 // Copyright 2016 Joe Wilm, The Alacritty Project Contributors 
+ 2 // 
+ 3 // Licensed under the Apache License, Version 2.0 (the "License"); 
+ 4 // you may not use this file except in compliance with the License. 
+ 5 // You may obtain a copy of the License at 
+ 6 // 
+ 7 // http://www.apache.org/licenses/LICENSE-2.0 
+ 8 // 
+ 9 // Unless required by applicable law or agreed to in writing, software 
+ 10 // distributed under the License is distributed on an "AS IS" BASIS, 
+ 11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 
+ 12 // See the License for the specific language governing permissions and 
+ 13 // limitations under the License. 
+ 14 use std::collections::HashMap; 
+ 15 use std::hash::BuildHasherDefault; 
+ 16 use std::fs::File; 
+ 17 use std::io::{self, Read}; 
+ 18 use std::mem::size_of; 
+ 19 use std::path::{PathBuf}; 
+ 20 use std::ptr; 
+ 21 use std::sync::mpsc; 
+ 22  
+ 23 use cgmath; 
+ 24 use fnv::FnvHasher; 
+ 25 use font::{self, Rasterizer, Rasterize, RasterizedGlyph, FontDesc, GlyphKey, FontKey}; 
+ 26 use gl::types::*; 
+ 27 use gl; 
+ 28 use index::{Line, Column, RangeInclusive}; 
+[3