Sha256: 61790831feebf876e720a33a3646d1d5cb0091e90b1ecd648197fa454fae4350
Contents?: true
Size: 666 Bytes
Versions: 2
Compression:
Stored size: 666 Bytes
Contents
require_relative 'test_constants' class TestViewHelper def initialize(window_id, view_id) @view = WebConsole::View.new(window_id, view_id) javascript = File.read(TEST_JAVASCRIPT_FILE) @view.do_javascript(javascript) end def log_message_at_index(index) return @view.do_javascript_function('innerTextOfBodyChildAtIndex', [index]) end def number_of_log_messages return @view.do_javascript(TEST_MESSAGE_COUNT_JAVASCRIPT) end def last_log_message return @view.do_javascript(TEST_MESSAGE_JAVASCRIPT) end def last_log_class return @view.do_javascript(TEST_CLASS_JAVASCRIPT) end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
webconsole-0.1.18 | lib/webconsole/logger/test/lib/test_view_helper.rb |
webconsole-0.1.17 | lib/webconsole/logger/test/lib/test_view_helper.rb |