Skip to content

Commit f19dc99

Browse files
John YaoDavid Castro
authored andcommitted
Fix #8 - remove key press event binding loops that have caused front end performance issue.
1 parent f31f7ef commit f19dc99

File tree

2 files changed

+53
-3
lines changed

2 files changed

+53
-3
lines changed

.travis.yml

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
language: php
2+
3+
sudo: required
4+
5+
addons:
6+
firefox: "47.0.1"
7+
postgresql: "9.4"
8+
apt:
9+
packages:
10+
- openjdk-8-jre-headless
11+
- chromium-chromedriver
12+
- redis-server
13+
14+
services:
15+
- redis-server
16+
- mysql
17+
18+
cache:
19+
directories:
20+
- $HOME/.composer/cache
21+
- $HOME/.npm
22+
23+
# Alternate tests with MySQL and PostgreSQL
24+
matrix:
25+
include:
26+
# PHP 7.2
27+
- php: 7.2
28+
env: DB=pgsql MOODLE_BRANCH=MOODLE_37_STABLE NODE_VERSION=14.2.0
29+
- php: 7.2
30+
env: DB=mysqli MOODLE_BRANCH=MOODLE_37_STABLE NODE_VERSION=14.2.0
31+
32+
before_install:
33+
- phpenv config-rm xdebug.ini
34+
- cd ../..
35+
- nvm install $NODE_VERSION
36+
- nvm use $NODE_VERSION
37+
- composer create-project -n --no-dev --prefer-dist blackboard-open-source/moodle-plugin-ci ci ^2;
38+
- export PATH="$(cd ci/bin; pwd):$(cd ci/vendor/bin; pwd):$PATH"
39+
- PATH=$(echo "$PATH" | sed -e 's/:\/usr\/local\/lib\/jvm\/openjdk11\/bin//') JAVA_HOME=/usr/lib/jvm/java-1.8.0-openjdk-amd64
40+
41+
install:
42+
- moodle-plugin-ci install -vvv
43+
44+
script:
45+
- moodle-plugin-ci validate
46+
- moodle-plugin-ci phplint
47+
- moodle-plugin-ci phpmd
48+
- moodle-plugin-ci savepoints
49+
- moodle-plugin-ci phpunit
50+
- moodle-plugin-ci behat

tests/behat/posts_ordering_blog.feature

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -74,9 +74,9 @@ Feature: In Open Forums, blog posts are always displayed in reverse chronologica
7474
#
7575
# Make sure the order of the blog posts is still reverse chronological.
7676
#
77-
Then I should see "This is the third post" in the "//article[position()=1]" "xpath_element"
78-
And I should see "This is the second post" in the "//article[position()=2]" "xpath_element"
79-
And I should see "This is the first post" in the "//article[position()=3]" "xpath_element"
77+
Then I should see "Blog post 3" in the "//article[contains(concat(' ', normalize-space(@class), ' '), ' hsuforum-thread ')][position()=1]" "xpath_element"
78+
And I should see "Edited blog post 2" in the "//article[contains(concat(' ', normalize-space(@class), ' '), ' hsuforum-thread ')][position()=2]" "xpath_element"
79+
And I should see "Blog post 1" in the "//article[contains(concat(' ', normalize-space(@class), ' '), ' hsuforum-thread ')][position()=3]" "xpath_element"
8080
#
8181
# Make sure the next/prev navigation uses the same order of the posts.
8282
#

0 commit comments

Comments
 (0)