Sha256: af687c54bfc269db09132ba97b9f4538c7bf9696e034d19bc7aedfefa82d1e5d

Contents?: true

Size: 1.03 KB

Versions: 85

Compression:

Stored size: 1.03 KB

Contents

Dir.chdir File.join File.dirname(__FILE__), '../../../'
require './spec/env/iface.rb'

RSpec.describe "iface:driver:debug_spec" do
  include_context "iface:driver"
  module_dep "debug"

  it "supports if_debug_set_kv" do
    secret0 = SecureRandom.hex
    secret1 = SecureRandom.hex
    secret2 = SecureRandom.hex
    @pipe.puts [[0, 3, "if_debug_assoc", secret0, secret1, {"secret" => secret2}]].to_json
    @pipe.puts [[0, 2, "if_debug_spec_assoc", secret0, secret1]].to_json
    expect(@pipe).to readline_and_equal_json_x_within_y_seconds([1, "spec", {"secret" => secret2}], 6.seconds)
  end

  it "supports if_debug_highlight_view" do
    @pipe.puts [[0, 0, "if_ui_spec_init"]].to_json
    @pipe.puts [[0, 4, "if_init_view", "spec_one_spot", {}, 333, ["main", "content"]]].to_json

    @pipe.puts [[0, 2, "if_debug_highlight_view", 333, true]].to_json
    @pipe.puts [[0, 2, "if_debug_highlight_view", 333, false]].to_json

    #Wait for a response to make sure we didn't crash
    @pipe.puts [[0, 0, "ping"]].to_json; @pipe.readline_timeout
  end
end

Version data entries

85 entries across 85 versions & 1 rubygems

Version Path
flok-0.0.41 spec/iface/driver/debug_spec.rb
flok-0.0.40 spec/iface/driver/debug_spec.rb
flok-0.0.39 spec/iface/driver/debug_spec.rb
flok-0.0.38 spec/iface/driver/debug_spec.rb
flok-0.0.36 spec/iface/driver/debug_spec.rb
flok-0.0.35 spec/iface/driver/debug_spec.rb
flok-0.0.34 spec/iface/driver/debug_spec.rb
flok-0.0.33 spec/iface/driver/debug_spec.rb
flok-0.0.32 spec/iface/driver/debug_spec.rb
flok-0.0.31 spec/iface/driver/debug_spec.rb
flok-0.0.30 spec/iface/driver/debug_spec.rb
flok-0.0.29 spec/iface/driver/debug_spec.rb
flok-0.0.28 spec/iface/driver/debug_spec.rb
flok-0.0.27 spec/iface/driver/debug_spec.rb
flok-0.0.26 spec/iface/driver/debug_spec.rb
flok-0.0.25 spec/iface/driver/debug_spec.rb
flok-0.0.24 spec/iface/driver/debug_spec.rb
flok-0.0.23 spec/iface/driver/debug_spec.rb
flok-0.0.21 spec/iface/driver/debug_spec.rb
flok-0.0.20 spec/iface/driver/debug_spec.rb