<commit_before>describe "URI" do

    before(:all) do
        @@file_name = File.join(Rho::RhoApplication::get_base_app_path(), 'local_file.txt')
        unless File.exists?(@@file_name)
            write_data  = "this is rhodes test"
            f = File.new(@@file_name, "w")
            f.write(write_data)
            f.close        
        end
    end

    after(:all) do
unless System.get_property('platform') == 'WINDOWS'
        File.delete(@@file_name) if File.exists?(@@file_name)
end        
    end

    it "test navigate local page" do
        WebView.navigate "/app"
    end

    it "test navigate external http" do
        WebView.navigate "http://www.google.com/images/icons/product/chrome-48.png?rho_open_target=_blanck"
    end

    it "test navigate local file" do
        puts "runnuni open local file: #{@@file_name}"
        WebView.navigate "file://" + @@file_name
    end

    it "test navigate phone uri" do
        WebView.navigate "tel:1234567"
    end

    it "test navigate sms uri" do
        WebView.navigate "sms:+1234567?body=test%20sms%20message"
    end

    it "test navigate mailto URI" do
        WebView.navigate "mailto:<EMAIL>?body=test%20phone%20spec%20mail%20message"
    end

    it "test navigate video" do
        WebView.navigate "video.avi"
    end

    it "test open local page" do
        WebView.navigate "/app"
    end

    it "test open external http" do
        WebView.navigate "http://www.google.com/images/icons/product/chrome-48.png?rho_open_target=_blanck"
    end

    it "test open local file" do
        puts "runnuni open local file: #{@@file_name}"
        System.open_url "file://" + @@file_name
    end

    it "test open phone uri" do
        System.open_url "tel:1234567" unless System.get_property('platform') == 'WINDOWS_DESKTOP'
    end
<commit_msg>phone_spec: uri_spec now have URL fixed to open in a new window<commit_after>describe "URI" do

    before(:all) do
        @@file_name = File.join(Rho::RhoApplication::get_base_app_path(), 'local_file.txt')
        unless File.exists?(@@file_name)
            write_data  = "this is rhodes test"
            f = File.new(@@file_name, "w")
            f.write(write_data)
            f.close        
        end
    end

    after(:all) do
unless System.get_property('platform') == 'WINDOWS'
        File.delete(@@file_name) if File.exists?(@@file_name)
end        
    end

    it "test navigate local page" do
        WebView.navigate "/app"
    end

    it "test navigate external http" do
        WebView.navigate "http://www.google.com/images/icons/product/chrome-48.png?rho_open_target=_blank"
    end

    it "test navigate local file" do
        puts "runnuni open local file: #{@@file_name}"
        WebView.navigate "file://" + @@file_name
    end

    it "test navigate phone uri" do
        WebView.navigate "tel:1234567"
    end

    it "test navigate sms uri" do
        WebView.navigate "sms:+1234567?body=test%20sms%20message"
    end

    it "test navigate mailto URI" do
        WebView.navigate "mailto:<EMAIL>?body=test%20phone%20spec%20mail%20message"
    end

    it "test navigate video" do
        WebView.navigate "video.avi"
    end

    it "test open local page" do
        WebView.navigate "/app"
    end

    it "test open external http" do
        WebView.navigate "http://www.google.com/images/icons/product/chrome-48.png?rho_open_target=_blank"
    end

    it "test open local file" do
        puts "runnuni open local file: #{@@file_name}"
        System.open_url "file://" + @@file_name
    end

    it "test open phone uri" do
        System.open_url "tel:1234567" unless System.get_property('platform') == 'WINDOWS_DESKTOP'
    end

{'fraction_non_alphanumeric': 0.11246612466124661, 'fraction_numerical': 0.02005420054200542, 'mean_word_length': 2.508555133079848, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 4, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7133187', 'n_tokens_mistral': 1275, 'n_tokens_neox': 1198, 'n_words': 305}