Sha256: 8948e3b1d14236978167aa1685d3c9e5c20fe95baeb08ca963fe4df95373b583

Contents?: true

Size: 1.72 KB

Versions: 17

Compression:

Stored size: 1.72 KB

Contents

# -*- coding: utf-8 -*-

::NAME_INFO = {
  'トップページ' => {
    path: '/',
  },
  'デモページ' => {
    path: '/demo/',
  },
  'ブロック' => {
    path: '/',
  },
  'エディタ' => {
    path: '/',
  },

  'ブロックタブ' => {
    id: 'block-tab',
  },
  'Rubyタブ' => {
    id: 'ruby-tab',
  },
  'テキストエディタ' => {
    id: 'text-editor',
  },
  'プログラム名の入力欄' => {
    id: 'filename',
  },

  # メニュー/サブメニューのボタン
  'メニュー' => {
    selector: '#main-menu',
  },
  'サブメニュー' => {
    selector: '#submenu',
  },
  'ログインボタン' => {
    id: 'signin-button',
  },
  'ダウンロードボタン' => {
    id: 'download-button',
  },
  '実行ボタン' => {
    id: 'run-button',
  },
  'サブメニューボタン' => {
    id: 'submenu-button',
  },
  'ロードボタン' => {
    id: 'load-button',
  },
  'セーブボタン' => {
    id: 'save-button',
  },
  'チェックボタン' => {
    id: 'check-button',
  },
  'リセットボタン' => {
    id: 'reset-button',
  },
  'ログアウトボタン' => {
    id: 'signout-button',
  },

  'メッセージ' => {
    id: 'messages',
  },

  # ダイアログ
  'ログインダイアログ' => {
    selector: '#signin-modal',
  },

  # ログインダイアログ
  'ログインダイアログの名前' => {
    id: 'signin-modal-username',
  },
  'ログインダイアログのログインボタン' => {
    id: 'signin-modal-ok-button',
  },
  'ログインダイアログのやめるボタン' => {
    id: 'signin-modal-cancel-button',
  },
}

::NAME_INFO.values.each do |value|
  if value.key?(:id) && !value.key?(:selector)
    value[:selector] = "##{value[:id]}"
  end
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
smalruby-editor-0.1.19-x86-mingw32 spec/steps/global_variable.rb
smalruby-editor-0.1.19 spec/steps/global_variable.rb
smalruby-editor-0.1.18-x86-mingw32 spec/steps/global_variable.rb
smalruby-editor-0.1.18 spec/steps/global_variable.rb
smalruby-editor-0.1.17-x86-mingw32 spec/steps/global_variable.rb
smalruby-editor-0.1.17 spec/steps/global_variable.rb
smalruby-editor-0.1.16-x86-mingw32 spec/steps/global_variable.rb
smalruby-editor-0.1.16 spec/steps/global_variable.rb
smalruby-editor-0.1.15-x86-mingw32 spec/steps/global_variable.rb
smalruby-editor-0.1.15 spec/steps/global_variable.rb
smalruby-editor-0.1.14-x86-mingw32 spec/steps/global_variable.rb
smalruby-editor-0.1.14 spec/steps/global_variable.rb
smalruby-editor-0.1.13-x86-mingw32 spec/steps/global_variable.rb
smalruby-editor-0.1.13 spec/steps/global_variable.rb
smalruby-editor-0.1.12-x86-mingw32 spec/steps/global_variable.rb
smalruby-editor-0.1.12 spec/steps/global_variable.rb
smalruby-editor-0.1.11-x86-mingw32 spec/steps/global_variable.rb