Переглянути джерело

Set up failing tests that pertain to #145

Daniel Gempesaw 11 роки тому
батько
коміт
60c6857b00
2 змінених файлів з 4 додано та 0 видалено
  1. 2 0
      t/02-webelement.t
  2. 2 0
      t/Test-Selenium-Remote-Driver-google.t

+ 2 - 0
t/02-webelement.t

@@ -53,6 +53,8 @@ INPUT: {
     is($ret, 'id', 'Get value (attribute)');
     $ret = $elem->get_attribute('value');
     is($ret, 'id', 'Get attribute @value');
+    $ret = $elem->get_attribute('missing-attribute');
+    ok(!$ret, 'Get attribute returns false for a missing attribute.');
     $ret = $elem->get_tag_name();
     is($ret, 'input', 'Get tag name');
 

+ 2 - 0
t/Test-Selenium-Remote-Driver-google.t

@@ -1,4 +1,6 @@
 #!/usr/bin/env perl
+use strict;
+use warnings;
 use Test::More;
 use Test::Selenium::Remote::Driver;