diff --git a/seleniumbase/resources/ReadMe.md b/seleniumbase/resources/ReadMe.md index 6d9356db..7691d19a 100755 --- a/seleniumbase/resources/ReadMe.md +++ b/seleniumbase/resources/ReadMe.md @@ -1,21 +1,19 @@ -

Resource Files

+## [](https://github.com/seleniumbase/SeleniumBase/) Resource Files -SeleniumBase uses JavaScript libraries for bonus features such as the Website Tour Maker, Presentation Maker, Chart Maker, Demo Mode, HTML Inspector, and more. In general, SeleniumBase retrieves these resources via CDN link. In some cases, you may want to host these JavaScript and CSS files from your own CDN. For simplicity and convenience, some of these resources have been downloaded into the "resources" folder. If you decide to use your own CDN, you may need to update links in [base_case.py](https://github.com/seleniumbase/SeleniumBase/blob/master/seleniumbase/fixtures/base_case.py) and [constants.py](https://github.com/seleniumbase/SeleniumBase/blob/master/seleniumbase/fixtures/constants.py). - -Here are some of the resource files you'll find here: +SeleniumBase uses JavaScript libraries for bonus features such as the Website Tour Maker, Presentation Maker, Chart Maker, Demo Mode, HTML Inspector, and more. In general, SeleniumBase retrieves these resources via CDN link. **favicon.ico** - This file is used by [style_sheet.py](https://github.com/seleniumbase/SeleniumBase/blob/master/seleniumbase/core/style_sheet.py) for the favicon icon. Currently, SeleniumBase uses the version at [https://raw.githubusercontent.com/seleniumbase/SeleniumBase/master/seleniumbase/resources/favicon.ico](https://raw.githubusercontent.com/seleniumbase/SeleniumBase/master/seleniumbase/resources/favicon.ico). +-------- + +The remaining resources have been moved into [github.com/seleniumbase/resource-files](https://github.com/seleniumbase/resource-files) in order to reduce the size of SeleniumBase: + **messenger/** - Files in this folder are used for creating JavaScript notifications during test runs in Demo Mode. **jquery_confirm/** - Files in this folder are used for creating JavaScript confirmation prompts during test runs when using MasterQA. **html_inspector/** - Files in this folder are used for the HTML Inspector, which validates website pages. --------- - -The remaining resources have been moved into [github.com/seleniumbase/resource-files](https://github.com/seleniumbase/resource-files) in order to reduce the size of SeleniumBase: - **reveal/** - Files in this folder are used for the HTML Presentation Maker. **prettify/** - Files in this folder are used to assist the HTML Presentation Maker. diff --git a/seleniumbase/resources/__init__.py b/seleniumbase/resources/__init__.py new file mode 100755 index 00000000..e69de29b diff --git a/seleniumbase/resources/html_inspector/html-inspector.min.js b/seleniumbase/resources/html_inspector/html-inspector.min.js deleted file mode 100644 index b5411dd8..00000000 --- a/seleniumbase/resources/html_inspector/html-inspector.min.js +++ /dev/null @@ -1,9 +0,0 @@ -/*! - * HTML Inspector - v0.8.2 - * - * Copyright (c) 2015 Philip Walton - * Released under the MIT license - * - * Date: 2015-01-30 - */ -!function e(t,n,r){function i(s,o){if(!n[s]){if(!t[s]){var l="function"==typeof require&&require;if(!o&&l)return l(s,!0);if(a)return a(s,!0);throw new Error("Cannot find module '"+s+"'")}var u=n[s]={exports:{}};t[s][0].call(u.exports,function(e){var n=t[s][1][e];return i(n||e)},u,u.exports,e,t,n,r)}return n[s].exports}for(var a="function"==typeof require&&require,s=0;s=0},isElementObsolete:function(e){return o.indexOf(e)>=0},isAttributeValidForElement:function(e,t){return!!function(e){return r(e,s)}(e)||(d(t).indexOf("any")>=0||d(t).indexOf(e)>=0)},isAttributeObsoleteForElement:function(e,t){return l.some(function(n){return n.attribute===e&&n.elements.split(/\s*;\s*/).some(function(e){return e===t})})},isAttributeRequiredForElement:function(e,t){return u.some(function(n){return t==n.element&&n.attributes.indexOf(e)>=0})},getRequiredAttributesForElement:function(e){var t=u.filter(function(t){return t.element==e});return t[0]&&t[0].attributes||[]},isChildAllowedInParent:function(e,t){return!i[e]||!i[t]||r(e,function(e){var t,n=[];return(t=(t=i[e].children).indexOf("*")>=0?[]:t.split(/\s*\;\s*/)).forEach(function(e){a[e]?n=(n=n.concat(a[e].elements)).concat(a[e].exceptions||[]):n.push(e)}),n.length?n:[/[\s\S]+/]}(t))}};t.exports={name:"validation",module:m}},{"../utils/string-matcher":38}],25:[function(e,t,n){function r(){this._errors=[]}r.prototype.warn=function(e,t,n){this._errors.push({rule:e,message:t,context:n})},r.prototype.getWarnings=function(){return this._errors},t.exports=r},{}],26:[function(e,t,n){var r=e("mout/object/mixIn");function i(){}i.prototype.add=function(e,t,n){"string"==typeof e?("function"==typeof t&&(n=t,t={}),this[e]={name:e,config:t,func:n}):this[e.name]={name:e.name,config:e.config,func:e.func}},i.prototype.extend=function(e,t){"function"==typeof t&&(t=t.call(this[e].config,this[e].config)),r(this[e].config,t)},t.exports=i},{"mout/object/mixIn":18}],27:[function(e,t,n){var r=e("../../utils/string-matcher");t.exports={name:"inline-event-handlers",config:{whitelist:[]},func:function(e,t,n){e.on("attribute",function(e,i){0!==e.indexOf("on")||r(e,n.whitelist)||t.warn("inline-event-handlers","An '"+e+"' attribute was found in the HTML. Use external scripts for event binding instead.",this)})}}},{"../../utils/string-matcher":38}],28:[function(e,t,n){t.exports={name:"script-placement",config:{whitelist:[]},func:function(t,n,r){var i=[],a=r.whitelist,s=e("dom-utils/src/matches");t.on("element",function(e){i.push(this)}),t.on("afterInspect",function(){for(var e;(e=i.pop())&&"script"==e.nodeName.toLowerCase(););i.forEach(function(e){if("script"==e.nodeName.toLowerCase()){if(!0===e.async||!0===e.defer)return;(function(e){return!!a&&("string"==typeof a?s(e,a):!!Array.isArray(a)&&a.length&&a.some(function(t){return s(e,t)}))})(e)||n.warn("script-placement","