File tree Expand file tree Collapse file tree 2 files changed +10
-11
lines changed
lib/selenium/webdriver/common
spec/unit/selenium/webdriver/common Expand file tree Collapse file tree 2 files changed +10
-11
lines changed Original file line number Diff line number Diff line change 11# frozen_string_literal: true
22
3- # <copyright file="print_options.rb" company="Selenium Committers">
43# Licensed to the Software Freedom Conservancy (SFC) under one
5- # or more contributor license agreements. See the NOTICE file
4+ # or more contributor license agreements. See the NOTICE file
65# distributed with this work for additional information
7- # regarding copyright ownership. The SFC licenses this file
6+ # regarding copyright ownership. The SFC licenses this file
87# to you under the Apache License, Version 2.0 (the
98# "License"); you may not use this file except in compliance
10- # with the License. You may obtain a copy of the License at
9+ # with the License. You may obtain a copy of the License at
1110#
1211# http://www.apache.org/licenses/LICENSE-2.0
1312#
1413# Unless required by applicable law or agreed to in writing,
1514# software distributed under the License is distributed on an
1615# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
17- # KIND, either express or implied. See the License for the
16+ # KIND, either express or implied. See the License for the
1817# specific language governing permissions and limitations
1918# under the License.
20- # </copyright>
19+
2120
2221module Selenium
2322 module WebDriver
Original file line number Diff line number Diff line change 11# frozen_string_literal: true
22
3- # <copyright file="print_options_spec.rb" company="Selenium Committers">
43# Licensed to the Software Freedom Conservancy (SFC) under one
54# or more contributor license agreements. See the NOTICE file
65# distributed with this work for additional information
1817# specific language governing permissions and limitations
1918# under the License.
2019
20+
2121require File . expand_path ( '../spec_helper' , __dir__ )
2222require 'selenium/webdriver/common/print_options'
2323
@@ -44,16 +44,16 @@ module WebDriver
4444 it 'can set predefined page sizes using symbols' do
4545 options . page_size = :a4
4646 expect ( options . page_size ) . to eq ( { width : 21.0 , height : 29.7 } )
47-
47+
4848 options . page_size = :legal
4949 expect ( options . page_size ) . to eq ( { width : 21.59 , height : 35.56 } )
50-
50+
5151 options . page_size = :tabloid
5252 expect ( options . page_size ) . to eq ( { width : 27.94 , height : 43.18 } )
53-
53+
5454 options . page_size = :letter
5555 expect ( options . page_size ) . to eq ( { width : 21.59 , height : 27.94 } )
56- end
56+ end
5757
5858 it 'raises an error for unsupported predefined page size symbols' do
5959 expect { options . page_size = :invalid } . to raise_error ( ArgumentError , /Invalid page size/ )
You can’t perform that action at this time.
0 commit comments