search for: has_text

Displaying 7 results from an estimated 7 matches for "has_text".

Did you mean: as_text
2010 Sep 30
5
response.should have_text leads to undefined method `has_text?'
One of my controllers directly renders some JSON output that I would like to test with RSpec. For that I use ''response.should have_text("foobar")'' in my spec file, but that leads to a Failure/Error: response.should have_text("enim") undefined method `has_text?'' for #<ActionController::TestResponse: 0xb6736944> I read here somewhere that webrat should be in the Gemfile, but that also did not solve the problem. Best regards, Kai
2008 May 08
2
Testing render :text without has_text
A controller I''m trying to test simply delivers a text string to the client, which then demarshalls it to retrieve some objects. I want to test that the returned string is correct. I don''t want to compare the string character-by-character with response.has_text because that ties me to the implementation of the Marshall class. Instead, I just want to demarshall the string and compare that with the expected objects. To do this, I need RSpec to give me the complete text string that''s rendered by the controller. Here''s the controller:...
2007 Nov 22
0
5 commits - libswfdec/swfdec_as_interpret.c libswfdec/swfdec_bits.c libswfdec/swfdec_bits.h libswfdec/swfdec_debugger.c libswfdec/swfdec_movie.c libswfdec/swfdec_script.c libswfdec/swfdec_sprite_movie.c libswfdec/swfdec_tag.c libswfdec/swfdec_text_field.c
...6 (b); } - text->variable = swfdec_bits_get_string_with_version (b, s->version); + text->variable = swfdec_bits_get_string (b, s->version); if (text->variable && *text->variable == 0) { g_free (text->variable); text->variable = NULL; } if (has_text) - text->input = swfdec_bits_get_string_with_version (b, s->version); + text->input = swfdec_bits_get_string (b, s->version); return SWFDEC_STATUS_OK; } commit 9eed89d76ace0ea8bcb589293269ee0b064f7248 Author: Benjamin Otte <otte at gnome.org> Date: Thu Nov 22 21:28:4...
2007 Mar 29
0
libswfdec-gtk/swfdec_playback_alsa.c libswfdec/swfdec_audio_event.h libswfdec/swfdec_audio_flv.h libswfdec/swfdec_audio_stream.h libswfdec/swfdec_bits.c libswfdec/swfdec_bits.h libswfdec/swfdec_buffer.c libswfdec/swfdec_buffer.h libswfdec/swfdec_cache.c
...100644 --- a/libswfdec/swfdec_edittext.c +++ b/libswfdec/swfdec_edittext.c @@ -97,7 +97,7 @@ int tag_func_define_edit_text (SwfdecSwfDecoder * s) { SwfdecEditText *text; - unsigned int id; + guint id; int reserved, use_outlines; gboolean has_font, has_color, has_max_length, has_layout, has_text; SwfdecBits *b = &s->b; @@ -154,7 +154,7 @@ tag_func_define_edit_text (SwfdecSwfDeco text->max_length = swfdec_bits_get_u16 (b); } if (has_layout) { - unsigned int align = swfdec_bits_get_u8 (b); + guint align = swfdec_bits_get_u8 (b); switch (align) { case...
2007 Mar 29
0
Branch 'as' - 9 commits - libswfdec-gtk/swfdec_playback_alsa.c libswfdec/js libswfdec/Makefile.am libswfdec/swfdec_as_context.c libswfdec/swfdec_as_context.h libswfdec/swfdec_as_frame.c libswfdec/swfdec_as_frame.h libswfdec/swfdec_as_function.c
...100644 --- a/libswfdec/swfdec_edittext.c +++ b/libswfdec/swfdec_edittext.c @@ -97,7 +97,7 @@ int tag_func_define_edit_text (SwfdecSwfDecoder * s) { SwfdecEditText *text; - unsigned int id; + guint id; int reserved, use_outlines; gboolean has_font, has_color, has_max_length, has_layout, has_text; SwfdecBits *b = &s->b; @@ -154,7 +154,7 @@ tag_func_define_edit_text (SwfdecSwfDeco text->max_length = swfdec_bits_get_u16 (b); } if (has_layout) { - unsigned int align = swfdec_bits_get_u8 (b); + guint align = swfdec_bits_get_u8 (b); switch (align) { case...
2007 Oct 29
0
20 commits - libswfdec/Makefile.am libswfdec/swfdec_as_interpret.c libswfdec/swfdec_html_parser.c libswfdec/swfdec_initialize.as libswfdec/swfdec_initialize.h libswfdec/swfdec_text_field.c libswfdec/swfdec_text_field.h
...ext->variable); @@ -109,6 +110,7 @@ tag_func_define_edit_text (SwfdecSwfDecoder * s, guint tag) SWFDEC_GRAPHIC (text)->extents.x0, SWFDEC_GRAPHIC (text)->extents.y0, SWFDEC_GRAPHIC (text)->extents.x1, SWFDEC_GRAPHIC (text)->extents.y1); swfdec_bits_syncbits (b); + has_text = swfdec_bits_getbit (b); text->word_wrap = swfdec_bits_getbit (b); text->multiline = swfdec_bits_getbit (b); @@ -128,6 +130,7 @@ tag_func_define_edit_text (SwfdecSwfDecoder * s, guint tag) text->embed_fonts = swfdec_bits_getbit (b); if (text->embed_fonts) SWFDEC_FIXME...
2007 Apr 04
0
Branch 'as' - 17 commits - configure.ac doc/Makefile.am doc/swfdec-docs.sgml doc/swfdec-sections.txt doc/swfdec.types libswfdec-gtk/Makefile.am libswfdec-gtk/swfdec-gtk.h libswfdec-gtk/swfdec_gtk_loader.c libswfdec-gtk/swfdec_gtk_loader.h
...t->variable; - } -} - int tag_func_define_edit_text (SwfdecSwfDecoder * s) { @@ -178,7 +167,6 @@ tag_func_define_edit_text (SwfdecSwfDeco text->spacing = swfdec_bits_get_s16 (b); } text->variable = swfdec_bits_get_string (b); - swfdec_edit_text_parse_variable (text); if (has_text) text->text = swfdec_bits_get_string (b); diff --git a/libswfdec/swfdec_edittext.h b/libswfdec/swfdec_edittext.h index d6051ec..0bf5c27 100644 --- a/libswfdec/swfdec_edittext.h +++ b/libswfdec/swfdec_edittext.h @@ -1,5 +1,5 @@ /* Swfdec - * Copyright (C) 2006 Benjamin Otte <otte@gnome...