<commit_before>//
//  UIWebViewSpecs.swift
//  Ello
//
//  Created by <NAME> on 3/25/2015.
//  Copyright (c) 2015 Ello. All rights reserved.
//

import Quick
import Nimble


class UIWebViewSpecs: QuickSpec, UIWebViewDelegate {
    var webView: UIWebView!

    override func spec() {
        fdescribe("-windowContentSize") {
            beforeEach() {
                let html = "<div><img style=\"width: 100pt; height: 100pt;\" width=\"100\" height=\"100\" src=\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAAAAAA6fptVAAAACklEQVR4nGNiAAAABgADNjd8qAAAAABJRU5ErkJggg==\" /></div>"
                self.webView = UIWebView(frame: CGRectZero)
                self.webView.loadHTMLString(html, baseURL: NSURL(string: "/"))<commit_msg>don't focus spec<commit_after>//
//  UIWebViewSpecs.swift
//  Ello
//
//  Created by <NAME> on 3/25/2015.
//  Copyright (c) 2015 Ello. All rights reserved.
//

import Quick
import Nimble


class UIWebViewSpecs: QuickSpec, UIWebViewDelegate {
    var webView: UIWebView!

    override func spec() {
        describe("-windowContentSize") {
            beforeEach() {
                let html = "<div><img style=\"width: 100pt; height: 100pt;\" width=\"100\" height=\"100\" src=\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAAAAAA6fptVAAAACklEQVR4nGNiAAAABgADNjd8qAAAAABJRU5ErkJggg==\" /></div>"
                self.webView = UIWebView(frame: CGRectZero)
                self.webView.loadHTMLString(html, baseURL: NSURL(string: "/"))
{'fraction_non_alphanumeric': 0.13814016172506738, 'fraction_numerical': 0.04043126684636118, 'mean_word_length': 3.090909090909091, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 11, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, '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': '7374839', 'n_tokens_mistral': 583, 'n_tokens_neox': 506, 'n_words': 98}